dispose method

void dispose()

Dispose this app task controller.

No further app tasks can be enqueued to a closed controller.

Implementation

void dispose() {
  _garbageCollector?.cancel();
  _controller.close();
}