Module task

Source
Expand description

Async (task, thread, timer) helper functions

Structs§

AzInstantPtr
CheckThreadFinishedCallback
CreateThreadCallback
ExternalSystemCallbacks
Config that is necessary so that threading + animations can compile on no_std
GetSystemTimeCallback
InstantPtrCloneCallback
InstantPtrDestructorCallback
LibraryReceiveThreadMsgCallback
LibrarySendThreadMsgCallback
SystemTick
SystemTickDiff
Represents a difference in ticks for systems that don’t support timing
SystemTimeDiff
Thread
Wrapper around Thread because Thread needs to be clone-able for Python
ThreadDestructorCallback
ThreadId
ID for uniquely identifying a timer
ThreadInner
A Thread is a seperate thread that is owned by the framework.
ThreadReceiver
ThreadReceiverDestructorCallback
ThreadReceiverInner
ThreadRecvCallback
ThreadSendCallback
ThreadSender
ThreadSenderDestructorCallback
ThreadSenderInner
ThreadWriteBackMsg
Timer
A Timer is a function that is run on every frame.
TimerId
ID for uniquely identifying a timer

Enums§

Duration
Instant
OptionDuration
OptionInstant
OptionThreadId
OptionThreadReceiveMsg
OptionThreadSendMsg
OptionTimerId
TerminateTimer
Should a timer terminate or not - used to remove active timers
ThreadReceiveMsg
ThreadSendMsg
Message that can be sent from the main thread to the Thread using the ThreadId.

Functions§

create_thread_libstd
get_system_time_libstd

Type Aliases§

CheckThreadFinishedCallbackType
CreateThreadCallbackType
Function that creates a new Thread object
GetSystemTimeCallbackType
Get the current system type, equivalent to std::time::Instant::now(), except it also works on systems that don’t have a clock (such as embedded timers)
InstantPtrCloneCallbackType
InstantPtrDestructorCallbackType
LibraryReceiveThreadMsgCallbackType
LibrarySendThreadMsgCallbackType
ThreadDestructorCallbackType
ThreadReceiverDestructorCallbackType
ThreadRecvCallbackType
ThreadSendCallbackType
ThreadSenderDestructorCallbackType