std1.0.0-beta-7 SafeC docs

std :: async::combinator

Struct std::Either

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

generic<TA, TB> struct Either {
    int which;
    TA left;
    TB right;
}

Which future a Select2 picked, and its output (Rust's Either; the other field is unset). It owns that output when its type owns something.

Fields

§int whichsource

1: 'left' holds the first future's output, 2: 'right' the second's

§TA leftsource
§TB rightsource

Methods

§int is_left() constsource · definition
§void drop() if (needs_drop(TA) || needs_drop(TB))source · definition