dispose method

void dispose()

Disables additional collection of asynchronous tasks.

This effectively permanently shuts down the events of this instance. Most applications will not need to invoke this, it is used internally in cases such as tests.

Implementation

void dispose() {
  _disposed = true;
}