pubnub-core 0.1.0

PubNub core crate, modular and composable
Documentation
use std::fmt::Debug;
use std::future::Future;

/// Runtime abstracts away the underlying runtime we use for task scheduling.
pub trait Runtime: Clone + Send + Sync + Unpin + Debug {
    /// Spawn a [`Future`] to run as a task in some executor.
    fn spawn<F>(&self, future: F)
    where
        F: Future<Output = ()> + Send + 'static;
}