Module workflow_core::prelude
source · Expand description
The prelude module re-exports the most commonly used traits and types from the workflow_core crate.
Re-exports§
pub use crate::abortable::Abortable;pub use crate::channel::oneshot;pub use crate::channel::Channel;pub use crate::channel::DuplexChannel;pub use crate::channel::Multiplexer;pub use crate::enums::Describe;pub use crate::sendable::Sendable;pub use crate::task::dispatch;pub use crate::task::interval;pub use crate::task::spawn;pub use crate::time::unixtime_as_millis_f64;pub use crate::time::unixtime_as_millis_u128;pub use crate::extensions::*;
Structs§
- re-export of
instantcrate supporting native and WASM implementations ADurationtype to represent a span of time, typically used for system timeouts.
Functions§
- Waits until
durationhas elapsed. - Yields execution back to the Tokio runtime.
- Yields execution back to the Tokio runtime.
Type Aliases§
- re-export of
instantcrate supporting native and WASM implementations
Derive Macros§
- Attribute macro for automatic conversion of enums to their string representation