Expand description
Abstractions over tasks that can be used natively or on the Web.
Structs§
- Blocking
- A new task running in a different thread.
- Send
Error - The type of errors that can result from sending a message to the spawned task.
Error returned by the
Sender
.
Traits§
- Post
- Types that can be explicitly sent to a new thread.
This differs from
Send
in that we can provide an explicit post step (e.g.postMessage
on the Web).
Functions§
- spawn
- Spawns a new task, potentially on the current thread.
Type Aliases§
- Blocking
Future - The type of a future awaiting another thread.
- Input
Receiver - The stream of inputs available to the spawned task.
- NoInput
- A type that satisfies the send/receive bounds, but can never be sent or received.
- NonBlocking
Future - The type of a future awaiting another task.