2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-03-04 09:09:41 +00:00

Merge pull request #857 from Keruspe/blocking

update blocking
This commit is contained in:
Friedel Ziegelmayer 2020-08-19 16:06:55 +02:00 committed by GitHub
commit 03ddd0a869
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -82,7 +82,7 @@ surf = { version = "1.0.3", optional = true }
[target.'cfg(not(target_os = "unknown"))'.dependencies]
async-executor = { version = "0.1.2", features = ["async-io"], optional = true }
async-io = { version = "0.1.8", optional = true }
blocking = { version = "0.5.0", optional = true }
blocking = { version = "0.5.2", optional = true }
futures-lite = { version = "0.1.8", optional = true }
[target.'cfg(target_arch = "wasm32")'.dependencies]

View file

@ -35,5 +35,5 @@ where
F: FnOnce() -> T + Send + 'static,
T: Send + 'static,
{
task::spawn(async move { blocking::unblock!(f()) })
task::spawn(blocking::unblock(f))
}