-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use a thread pool for async FS ops #733
Comments
is there any reason that we can't use tokio-fs itself? |
Closed
ry
added a commit
to ry/deno
that referenced
this issue
Sep 22, 2018
This makes all of the ops thread safe. Now Deno is multithreaded. Preliminary work for denoland#733.
ry
added a commit
to ry/deno
that referenced
this issue
Sep 22, 2018
This makes all of the ops thread safe. Now Deno is multithreaded. Preliminary work for denoland#733.
ry
added a commit
to ry/deno
that referenced
this issue
Sep 22, 2018
This makes all of the ops thread safe. Now Deno is multithreaded. Preliminary work for denoland#733.
ry
added a commit
to ry/deno
that referenced
this issue
Sep 22, 2018
By using the tokio default runtime. This patch makes all of the ops thread safe. Preliminary work for denoland#733.
ry
added a commit
to ry/deno
that referenced
this issue
Sep 22, 2018
By using the tokio default runtime. This patch makes all of the ops thread safe. Preliminary work for denoland#733.
ry
added a commit
to ry/deno
that referenced
this issue
Sep 22, 2018
By using the tokio default runtime. This patch makes all of the ops thread safe. Preliminary work for denoland#733.
ry
added a commit
to ry/deno
that referenced
this issue
Sep 22, 2018
By using the tokio default runtime. This patch makes all of the ops thread safe. Preliminary work for denoland#733.
ry
added a commit
to ry/deno
that referenced
this issue
Sep 22, 2018
By using the tokio default runtime. This patch makes all of the ops thread safe. Preliminary work for denoland#733.
ry
added a commit
to ry/deno
that referenced
this issue
Sep 22, 2018
By using the tokio default runtime. This patch makes all of the ops thread safe. Preliminary work for denoland#733.
ry
added a commit
to ry/deno
that referenced
this issue
Sep 24, 2018
By using the tokio default runtime. This patch makes all of the ops thread safe. Preliminary work for denoland#733.
ry
added a commit
to ry/deno
that referenced
this issue
Sep 24, 2018
By using the tokio default runtime. This patch makes all of the ops thread safe. Preliminary work for denoland#733.
ry
added a commit
to ry/deno
that referenced
this issue
Sep 24, 2018
By using the tokio default runtime. This patch makes all of the ops thread safe. Preliminary work for denoland#733.
ry
added a commit
to ry/deno
that referenced
this issue
Sep 24, 2018
By using the tokio default runtime. This patch makes all of the ops thread safe. Preliminary work for denoland#733.
ry
added a commit
to ry/deno
that referenced
this issue
Sep 25, 2018
By using the tokio default runtime. This patch makes all of the ops thread safe. Adds libdeno to JS globals to make for easier testing. Preliminary work for denoland#733.
ry
added a commit
to ry/deno
that referenced
this issue
Sep 25, 2018
By using the tokio default runtime. This patch makes all of the ops thread safe. Adds libdeno to JS globals to make for easier testing. Preliminary work for denoland#733.
ry
added a commit
to ry/deno
that referenced
this issue
Sep 25, 2018
By using the tokio default runtime. This patch makes all of the ops thread safe. Adds libdeno to JS globals to make for easier testing. Preliminary work for denoland#733.
ry
added a commit
to ry/deno
that referenced
this issue
Sep 25, 2018
By using the tokio default runtime. This patch makes all of the ops thread safe. Adds libdeno to JS globals to make for easier testing. Preliminary work for denoland#733.
ry
added a commit
to ry/deno
that referenced
this issue
Sep 25, 2018
By using the tokio default runtime. This patch makes all of the ops thread safe. Adds libdeno to JS globals to make for easier testing. Preliminary work for denoland#733.
ry
added a commit
that referenced
this issue
Sep 25, 2018
By using the tokio default runtime. This patch makes all of the ops thread safe. Adds libdeno to JS globals to make for easier testing. Preliminary work for #733.
Fixed in df09fba |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As noted as a TODO item in 0d03faf, the current way we're implementing async FS ops is still blocking. We have to call tokio_threadpool::blocking like tokio-fs does.
Example: https://github.com/tokio-rs/tokio/blob/0f44adf5f696ac73dcdcb1fb2b91b87553c57443/tokio-fs/src/rename.rs#L52
Fixing this should not involve touching JS code.
The text was updated successfully, but these errors were encountered: