Skip to main content
注意: 此页面尚未翻译成中文。以下内容为英文原版。
A Subscriber manages a subscription. Only developers sub-classing AbstractProvider will care about this, if they are modifying a low-level feature of how subscriptions operate.

Properties

Methods

pause()

Called when the subscription should pause. If dropWhilePaused, events that occur while paused should not be emitted Subscriber.resume.

Parameters

Returns

void

Source

providers/abstract-provider.ts:233

resume()

Resume a paused subscriber.

Returns

void

Source

providers/abstract-provider.ts:238

start()

Called initially when a subscriber is added the first time.

Returns

void

Source

providers/abstract-provider.ts:218

stop()

Called when there are no more subscribers to the event.

Returns

void

Source

providers/abstract-provider.ts:223