| Home | Libraries | People | FAQ | More

###### async_base::async_base (1 of 2 overloads)

Constructor.

Synopsis

    template<
        class Handler>
    async_base(
        Handler&& handler,
        Executor1 const& ex1,
        Allocator const& alloc = Allocator());

Description Parameters

Name | Description
--- | ---
`handler` | The final completion handler. The type of this object must meet the requirements of CompletionHandler. The implementation takes ownership of the handler by performing a decay-copy.
`ex1` | The executor associated with the implied I/O object target of the operation. The implementation shall maintain an executor work guard for the lifetime of the operation, or until the final completion handler is invoked, whichever is shorter.
`alloc` | The allocator to be associated with objects derived from this class. If `Allocator` is default-constructible, this parameter is optional and may be omitted.