std1.0.0-beta-7 SafeC docs

std :: async::combinator

Struct std::Join3

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

generic<A: Future, B: Future, C: Future, TA, TB, TC> struct Join3 {
    A a;
    B b;
    C c;
    TA ra[1];
    TB rb[1];
    TC rc[1];
    int done;
    int delivered;
}

Three at once. Output: Both<TA, Both<TB, TC>> -- (a, (b, c)).

Fields

§TA ra[1]source
§TB rb[1]source
§TC rc[1]source
§int donesource

bit 0: a, 1: b, 2: c (its output is stored)

§int deliveredsource

the outputs moved out in the Ready Both

Methods

§struct Poll<struct Both<TA, struct Both<TB, TC>>> poll(&Context cx)source · definition
§void drop()source · definition

and outputs nobody received