class

BitShares::Task

Inherits Reference < Object

在纤程模式下运行的任务的抽象基类。

Constants

Log = ::Log.for("task")

Constructors

new(config_object : BitShares::Config | Nil = nil)
Source

Instance methods

client

获取 client 对象。

Source
fiber
Source
finished?

任务是否运行结束判断

Source
main

异步任务主方法。子类应该重新实现该方法。

Source
on_exception(e)
Source
start
Source
stop
Source
tick_per_day

事件 - 每天调用。

Source
tick_per_minute

事件 - 每分钟调用。

Source