nwaku/tests/testlib/futures.nim

21 lines
363 B
Nim

import
chronos
import
../../../waku/[
waku_core/message,
waku_store
]
let FUTURE_TIMEOUT* = 1.seconds
proc newPushHandlerFuture*(): Future[(string, WakuMessage)] =
newFuture[(string, WakuMessage)]()
proc newBoolFuture*(): Future[bool] =
newFuture[bool]()
proc newHistoryFuture*(): Future[HistoryQuery] =
newFuture[HistoryQuery]()