shutdownSync method

  1. @Since.new("3.13")
void shutdownSync()

Shut down target isolate.

Shutting down the isolate stops its event loop without processing any pending messages and closes all open receive ports owned by the isolate.

This function will block until it acquires exclusive access to the target isolate. Isolate can only be entered for synchronous execution between turns of its event loop, when no other thread is executing code in the target isolate.

Implementation

@Since("3.13")
external void shutdownSync();