dispose method

Future<void> dispose()

For testing / shutdown. Closes the state stream and disposes the underlying runtime.

Implementation

Future<void> dispose() async {
  await _runtime.dispose();
  await _state.close();
}