Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTimeout = errors.New("timed out")
ErrTimeout is returned when time is up
Functions ¶
func CleanupPath ¶
CleanupPath detects the existence of test DB file and removes it if found
func ConstructAddress ¶
func ConstructAddress(pubkey, prikey string) *iotxaddress.Address
ConstructAddress constructs an iotex address
func SignalChan ¶
SignalChan returns a channel that will be written every interval until timeout
func WaitUntil ¶
func WaitUntil(interval, timeout time.Duration, f CheckCondition) error
WaitUntil periodically checks whether the condition specified in CheckCondition function is satisfied If an error is returned, it either comes from CheckCondition function or time is up before the given condition is satisfied
Types ¶
type CheckCondition ¶
CheckCondition defines a func type that checks whether a certain condition is satisfied
Click to show internal directories.
Click to hide internal directories.