attach method

Future<AudioIsolateShutdownResponse> attach()

Implementation

Future<AudioIsolateShutdownResponse> attach() {
  final session = _session;
  if (session == null) {
    throw StateError('AudioIsolate is not running');
  }

  return session.lifecycleCompleter.future;
}