defer method
Allows asynchronous code during documentation.
Documentation methods are synchronous. Asynchronous methods may be called and awaited on
in document
. All document
closures will be executes and awaited on before finishing document
.
These closures are called in the order they were added.
Implementation
void defer(FutureOr document()) {
_deferredOperations.add(document);
}