close method

Future<void> close()

Waits for queued requests, then closes the task and its worker.

Implementation

Future<void> close() {
  _closed = true;
  return _reported(_close(_id));
}