class Async

Defined at line 253 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/transaction.h

An asynchronous responder owns the underlying transaction.

It may be stored in the server implementation for delayed reply. It is okay for the handler

to return without replying when the Completer::Sync is converted to Completer::Async, e.g.

virtual void MyMethod(Foo foo, Bar bar, MyMethodCompleter::Sync

&

completer) {

PerformLongOperation(foo, bar).then([completer = completer.ToAsync()] () {

// Here the type of |completer| is |MyMethodCompleter::Async|.

completer.Reply(...);

});

}

Public Methods

void Async ()

Defined at line 255 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/transaction.h

void Async (std::unique_ptr<Transaction> owned_transaction)

Defined at line 257 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/transaction.h