#web-worker #background #background-thread #task #desktop #execute

task_simple

Execute functions in the background, both on desktop and web

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

#256 in WebAssembly

Download history 41/week @ 2024-05-16 488/week @ 2024-05-23 93/week @ 2024-05-30 8/week @ 2024-06-06 4/week @ 2024-06-13 5/week @ 2024-07-25

139 downloads per month

MIT/Apache

30KB
736 lines

task_simple

Latest version Documentation

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.4–2.8MB
~57K SLoC