pub struct Coroutine {
pub current_stack_segment: Stack,
pub saved_context: Context,
}A coroutine is nothing more than a (register context, stack) pair.
Fields
current_stack_segment | The segment of stack on which the task is currently running or
if the task is blocked, on which the task will resume
execution.
Servo needs this to be public in order to tell SpiderMonkey
about the stack bounds.
|
saved_context | Always valid if the task is alive and not running.
|
Methods
Destroy coroutine and try to reuse std::stack segment.
Keyboard shortcuts
- ?
- Show this help dialog
- S
- Focus the search field
- ⇤
- Move up in search results
- ⇥
- Move down in search results
- ⏎
- Go to active search result
Search tricks
Prefix searches with a type followed by a colon (e.g.
fn:) to restrict the search to a given type.
Accepted types are: fn, mod,
struct, enum,
trait, typedef (or
tdef).