Expand description
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).
Structs§
- Background
Task - This is a long running background task
- Task
- This is a single task
- Task
Pool - Task Pool which can run several jobs in parallel.
- Ticket
- Each enqueue job yields a ticket which can be used to check if a job is done.
Enums§
- JobState
- This is the current state of a job.
- State
Progress - The internal state of the background task
Traits§
- Background
Function - This trait abstracts a function, which can be run independently
- Function
- This trait abstracts a function, which can be run independently
- State
Trait - This trait has to be implemented by the background task’s state