Runtime
Interface Runtime
is an interface. Any object with following functions can seen as a Runtime
.
- Runtime API can only be called at runtime.
runtime.getBlock(c)
c
: aCoordinate
.- return value: a
Promise
, whose will be resolved aBlock
.
runtime.setBlock(b)
b
: aBlock
.- return value: a
Promise
, whose will be resolvedundefined
.
runtime.setTimeout(func, milliseconds)
func
: a fusystemtion, which will be called aftermilliseconds
milliseconds. Because of tick exist, the accuracy can hardly exceed a tick.- return value: a number.