diff options
author | Bert Belder <bertbelder@gmail.com> | 2020-08-18 14:07:57 +0200 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2020-08-18 20:50:52 +0200 |
commit | f6e9150b33168ab8c5e48238860e2c3f3bf625f3 (patch) | |
tree | 8dd1c3767cf340f51e8bca0d9cc30bed2750954d /cli/rt | |
parent | b308a774e81d7d18dfc2122459632f9ba9ae1eb8 (diff) |
Async op dispatcher support with 'stateful_json_op_(a)sync()' (#7095)
Closes: #7020
Diffstat (limited to 'cli/rt')
-rw-r--r-- | cli/rt/30_files.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cli/rt/30_files.js b/cli/rt/30_files.js index 9ff2fe368..fe44727c2 100644 --- a/cli/rt/30_files.js +++ b/cli/rt/30_files.js @@ -28,7 +28,10 @@ ) { checkOpenOptions(options); const mode = options?.mode; - const rid = sendSync("op_open", { path: pathFromURL(path), options, mode }); + const rid = sendSync( + "op_open_sync", + { path: pathFromURL(path), options, mode }, + ); return new File(rid); } @@ -40,7 +43,7 @@ checkOpenOptions(options); const mode = options?.mode; const rid = await sendAsync( - "op_open", + "op_open_async", { path: pathFromURL(path), options, mode }, ); |