dispose method

void dispose()

Implementation

void dispose() {
  if (_disposed) {
    _log('already disposed');
    return;
  }
  _disposed = true;
  worker();
  _log('disposed');
}