std1.0.0-beta-7 SafeC docs

std :: async::combinator

Struct std::AndThen

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

generic<F: Future, T, G: Future, U> struct AndThen {
    F first;
    fn G(T) f;
    G second[1];
    int stage;
}

Runs 'first', then the future f makes from its output (and_then / .then). Output: U, the second future's.

Fields

§F firstsource
§fn G(T) fsource
§G second[1]source
§int stagesource

0: running first, 1: running second, 2: done

Methods

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