take abstract method

void take()

Detaches from the discovery manager, transferring ownership to the caller.

After this the discovery cycle will never free the underlying resource; the caller must dispose it. Safe to call on a handle that was never owned by discovery (a one-shot discoverOnce result), where it is a no-op.

Throws StateError if called twice, or after disposal.

Implementation

void take();