p2p/host/eventbus/opts library
Options for the EventBus implementation.
This is a port of the Go implementation from go-libp2p/p2p/host/eventbus/opts.go to Dart, using native Dart idioms.
Classes
- EmitterSettings
- Settings for an emitter
- SubSettings
- Settings for a subscription
Functions
-
bufSize(
int size) → SubscriptionOpt - Option to set the buffer size for a subscription
-
name(
String name) → SubscriptionOpt - Option to set the name for a subscription
-
stateful(
) → EmitterOpt - Option to make an emitter stateful
-
withMetricsTracer(
MetricsTracer metricsTracer) → BusOption - Option to set the metrics tracer for a bus