#web-worker #desktop #execute #run #thread #desktop-and-web

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

#1 in #desktop-and-web

Download history

139 downloads per month

MIT/Apache

30KB
736 lines

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).


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.

Dependencies

~0.3–2.8MB
~55K SLoC