std1.0.0-beta-7 SafeC docs

std :: async::net

Struct std::Runtime

#include <std/async/net.h> source

struct Runtime {
    struct LocalExecutor ex;
    struct IoDriver io;
}

A LocalExecutor parked in an IoDriver.

Fields

Methods

§static struct Runtime new()source · definition
§int init()source · definition

Open the I/O driver and attach it (call once the Runtime is in place).

§generic<F, T> struct JoinHandle<T> spawn(&AsyncTask<F, T> task)source · definition
§void run()source · definition

Until every spawned task has finished.

§generic<F: Future, T> T block_on(&F fut)source · definition