AsyncEventHub class

An AsyncEvent hub.

Constructors

AsyncEventHub.new(String name, AsyncEventStorage storage)

Properties

epoch FutureOr<int>
The current epoch of the storage.
no setter
hashCode int
The hash code for this object.
no setterinherited
name String
The name of this event hub.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
storage AsyncEventStorage
The storage of AsyncEvent.
final

Methods

cancelChannelCalls(String channelName) → void
Cancels channel with channelName calls.
channel(String name) AsyncEventChannel
Returns an AsyncEventChannel with name.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pull(String channelName, AsyncEventID? fromID) FutureOr<int>
Pull new events from storage.
purge(String channelName, {AsyncEventID? untilID, DateTime? before, bool all = false}) FutureOr<int>
Purge events and create a new epoch from the remaining events.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited