dispose abstract method

Future<void> dispose()

Closes the all-events stream and every node of the bus. Safe to call twice. After dispose the bus is unusable: send/listen/subscribe/setHandler throw StateError.

Implementation

Future<void> dispose();