[][src]Module azul_core::task

Async (task, thread, timer) helper functions

Structs

DropCheck

Simple struct that is used by Azul internally to determine when the thread has finished executing. When this struct goes out of scope, Azul will call .join() on the thread (so in order to not block the main thread, simply let it go out of scope naturally.

Task

A Task is a seperate thread that is owned by the framework.

Thread

A Thread is a simple abstraction over std::thread that allows to offload a pure function to a different thread (essentially emulating async / await for older compilers).

Timer

A Timer is a function that is run on every frame.

TimerId

ID for uniquely identifying a timer

Enums

BlockError

Error that can happen while calling .block()

TerminateTimer

Should a timer terminate or not - used to remove active timers

Functions

clean_up_finished_tasks

Remove all tasks that have finished executing

run_all_timers

Run all currently registered timers

Type Definitions

TaskCallback