Crate task_simple

Source
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§

BackgroundTask
This is a long running background task
Task
This is a single task
TaskPool
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.
StateProgress
The internal state of the background task

Traits§

BackgroundFunction
This trait abstracts a function, which can be run independently
Function
This trait abstracts a function, which can be run independently
StateTrait
This trait has to be implemented by the background task’s state