std1.0.0-beta-7 SafeC docs

std :: async::combinator

Struct std::SelectAny

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

generic<F: Future, T> struct SelectAny {
    []F futs;
    int finished;
}

The first in 'futs' to be Ready wins (lowest index on a tie); the rest are dropped (futures::future::select_all). Output: Picked<T>.

Fields

§[]F futssource
§int finishedsource

Methods

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