create method
Creates the resolver and allocates the stream info buffer. This method initializes the resolver with the specified forgetAfter time, which is the duration after which streams that are not seen will be forgotten. Returns the created resolver instance.
Implementation
@override
/// Creates the resolver and allocates the stream info buffer.
/// This method initializes the resolver with the specified [forgetAfter]
/// time, which is the duration after which streams that are not seen will be
/// forgotten.
/// Returns the created resolver instance.
LSLStreamResolverContinuous create() {
super.create();
// Exactly one native resolver per object. Subclasses choose which kind
// through [createNativeResolver]; they must not create one themselves, or
// the first handle is overwritten and its resolve waves never stop.
final resolver = createNativeResolver();
if (resolver == nullptr) {
destroy();
throw LSLException('Could not create continuous resolver ($this)');
}
_resolver = resolver;
_liveNativeResolvers++;
return this;
}