Heartbeat API¶
- class aioqzone_feed.api.heartbeat.HeartbeatApi(*args, **kwds)¶
- async heartbeat_refresh()¶
A wrapper function that calls
hb_api
and handles all kinds of excpetions raised during heartbeat. :rtype:None
备注
This method calls heartbeat ONLY ONCE so it should be called periodically by using other timer/scheduler.
在 0.13.4 版本发生变更: do not retry, just call heartbeat once
- stop()¶
Clear all registered tasks. All tasks will be CANCELLED if not finished.
- 返回类型:
None
- hb_failed¶
This emitter is triggered when the heartbeat fails because of a exception.
- hb_refresh¶
This emitter is triggered after a heartbeat succeeded and there are new feeds. Use this event to wait for all dispatch task to be finished, and send received feeds.
- ch_heartbeat_notify¶
A future store serves as heartbeat channel.