Disconnects the sync channel and releases the resources owned by this context.
A worker created by connect is terminated. A caller-supplied worker, or the
worker behind a buffer shared with attach, is left running so other contexts
that still use that buffer keep working. After disconnecting, connect or
attach can be called again — this is also the way out of a channel that got
stuck (worker crashed, response never arrived).
Disconnects the sync channel and releases the resources owned by this context.
A worker created by
connectis terminated. A caller-supplied worker, or the worker behind a buffer shared withattach, is left running so other contexts that still use that buffer keep working. After disconnecting,connectorattachcan be called again — this is also the way out of a channel that got stuck (worker crashed, response never arrived).Calling it while not connected is a no-op.