close abstract method

Future<void> close()

Releases what the scorer holds. The model stays open. Idempotent.

Core also calls it to cancel: when a createDecider is cancelled while prepare runs, and when the app closes the decider while score runs. An engine should stop its native work for this scorer then; the calls in flight may fail with StateError, which core reports as the cancel.

Implementation

Future<void> close();