Module workflow_rs::core::task::wasm
source · Expand description
WASM implementation
Modules§
- native implementation
Macros§
Structs§
Intervalstream used by theinterval()function to provide a a time interval stream. The stream is backed by tokio interval stream on native platforms and by by the JavaScriptsetInterval()andclearInterval()APIs in WASM32 environment.
Functions§
async interval()function backed by the JavaScriptcreateInterval()- Sleeps for the specified amount of time.
- Yields execution back to the Tokio runtime.
- Cooperatively gives up a timeslice to the task scheduler.