lighthouse-client 6.2.1

Client SDK for Project Lighthouse
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use async_std::task;
use futures::Future;

use crate::Spawner;

/// A spawner that creates asynchronous tasks.
pub enum AsyncStdSpawner {}

impl Spawner for AsyncStdSpawner {
    fn spawn<F>(future: F) where F: Future + Send + 'static, F::Output: Send {
        task::spawn(future);
    }
}