Constructors

Synopses

Declared in <folly/fibers/async/Async.h>

Copy construction is disabled.

Async(Async const& other) = delete;

Move‐constructs the wrapper from other.

Async(Async&& other) = default;

Move constructor to allow eager‐return of async without using await.

template<typename U>
Async(Async<U>&& async) noexcept;

General use constructor that forwards val to the wrapped value.

template<typename... Us>
Async(Us&&... val);

Parameters

Name

Description

other

The wrapper that would be copied.

async

The wrapper whose value is moved into this one.

val

Arguments used to construct the wrapped value.

Created with MrDocs