std1.0.0-beta-7 SafeC docs

std :: async::channel

Struct std::ChanSend

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

generic<T> struct ChanSend {
    ?&AsyncChannel<T> ch;
    T value;
    int wait_id;
    int done;
    int sent;
}

Fields

§T valuesource
§int wait_idsource
§int donesource
§int sentsource

'value' moved into the channel

Methods

§struct Poll<int> poll(&Context cx)source · definition
§void drop()source · definition

and 'value', if it was never sent