close method

void close()

Releases the adapter's resources by forwarding to LlmAdapter.close.

An adapter constructed without a client of its own creates one and owns it, and the usual way to build an Instructor passes the adapter inline and never keeps a reference to it. Without this, that client could not be reached, and the process would sit on an idle socket until it timed out. Call it when you are done with the Instructor; it is safe to call more than once.

Implementation

void close() => _adapter.close();