MessageBusSink
From Get docs
< @angular/platform-webworkerAngular/docs/8/api/platform-webworker/messagebussink
MessageBusSink
interface
interface MessageBusSink {
initChannel(channel: string, runInZone: boolean): void
attachToZone(zone: NgZone): void
to(channel: string): EventEmitter<any>
}
Class implementations
MessageBus
Methods
initChannel() | ||||||
---|---|---|---|---|---|---|
Sets up a new channel on the MessageBusSink. MUST be called before calling to on the channel. If runInZone is true the sink will buffer messages and send only once the zone exits. if runInZone is false the sink will send messages immediately. | ||||||
initChannel(channel: string, runInZone: boolean): voidParameters
Returns
|
attachToZone() | |||
---|---|---|---|
Assigns this sink to the given zone. Any channels which are initialized with runInZone set to true will wait for the given zone to exit before sending messages. | |||
attachToZone(zone: NgZone): voidParameters
Returns
|
to() | |||
---|---|---|---|
Returns an EventEmitter for the given channel To publish methods to that channel just call next on the returned emitter | |||
to(channel: string): EventEmitter<any>Parameters
Returns
|
© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v8.angular.io/api/platform-webworker/MessageBusSink