Skip to content

NthTensor/web-task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This crate is a modern alternative to web-bindgen-futures built around async-task.

Pros & Cons

Pros:

  • Provides both spawn (for Send futures) and spawn_local (for !Send futures).
  • spawn and spawn_local return Task<T> futures, which resolve to return values.
  • It's possible to cancel futures using task handles.
  • Non-send futures (which are common on web) can have send task-handles.

Cons:

  • Some older browser versions are not supported.

Runtime Support

Enabling the +atomics nightly target feature automatically switches the crate to a multithreaded runtime, which may have different performance characteristics.

About

A task executor for wasm

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages