5 releases (3 breaking)
0.4.1 | May 27, 2024 |
---|---|
0.4.0 | May 27, 2024 |
0.3.0 | May 26, 2024 |
0.2.0 | May 26, 2024 |
0.1.0 | May 22, 2024 |
#364 in Concurrency
30KB
736 lines
task_simple
Execute functions in the background, both on desktop/native and web/wasm. On desktop/native, threads are used. On web/wasm, webworkers are used.
Note: There is an example in examples/simple_example.
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in task_simple by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
lib.rs
:
This is a basic implementation of a task which can be used but with Standard (Linux,Windows, MacOs) and Wasm (Web). A task means here a function which can be run in the background (Standard:Thread, Wasm: WebWorker).
Dependencies
~0.3–2.8MB
~56K SLoC