[][src]Trait pubnub_core::Runtime

pub trait Runtime: Clone + Send + Sync + Unpin + Debug {
    fn spawn<F>(&self, future: F)
    where
        F: Future<Output = ()> + Send + 'static
; }

Runtime abstracts away the underlying runtime we use for task scheduling.

Required methods

fn spawn<F>(&self, future: F) where
    F: Future<Output = ()> + Send + 'static, 

Spawn a Future to run as a task in some executor.

Loading content...

Implementors

impl Runtime for MockRuntime[src]

Loading content...