#web-worker #background #background-thread #task #wasm #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

#375 in Concurrency

Download history 5/week @ 2024-07-26 6/week @ 2024-09-20 4/week @ 2024-09-27 1/week @ 2024-10-04

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.9MB
~57K SLoC