Struct tokio_scoped::Scope[][src]

pub struct Scope<'a> { /* fields omitted */ }

Methods

impl<'a> Scope<'a>
[src]

Spawn the received future on the ScopedRuntime which was used to create self.

Blocks the "current thread" of the runtime until future resolves. Other spawned futures can make progress while this future is running.

Creates an inner scope which can access variables created within the outer scope.

Get a TaskExecutor to the underlying Runtime instance.

Trait Implementations

impl<'a> Debug for Scope<'a>
[src]

Formats the value using the given formatter. Read more

impl<'a> Drop for Scope<'a>
[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl<'a> Send for Scope<'a>

impl<'a> Sync for Scope<'a>