kill method

void kill({
  1. int priority = Isolate.beforeNextEvent,
})

Request our generating funciton to shut down, by calling Isolate.kill with the given argument. This should not normally be necessary, but it may be useful to clean up under exceptional circumstances.

Implementation

void kill({int priority = Isolate.beforeNextEvent}) =>
    _session.kill(priority);