Fix identifiers to be `uint` instead of `uint64`.
This commit is contained in:
parent
3bc0bc36f7
commit
661eae5732
|
@ -39,7 +39,7 @@ type
|
||||||
state*: FutureState
|
state*: FutureState
|
||||||
error*: ref CatchableError ## Stored exception
|
error*: ref CatchableError ## Stored exception
|
||||||
mustCancel*: bool
|
mustCancel*: bool
|
||||||
id*: uint64
|
id*: uint
|
||||||
|
|
||||||
when defined(chronosStackTrace):
|
when defined(chronosStackTrace):
|
||||||
errorStackTrace*: StackTrace
|
errorStackTrace*: StackTrace
|
||||||
|
@ -78,8 +78,8 @@ type
|
||||||
tail*: FutureBase
|
tail*: FutureBase
|
||||||
count*: uint
|
count*: uint
|
||||||
|
|
||||||
var currentID* {.threadvar.}: uint64
|
var currentID* {.threadvar.}: uint
|
||||||
currentID = 0'u64
|
currentID = 0'u
|
||||||
|
|
||||||
when defined(chronosFutureTracking):
|
when defined(chronosFutureTracking):
|
||||||
var futureList* {.threadvar.}: FutureList
|
var futureList* {.threadvar.}: FutureList
|
||||||
|
|
|
@ -59,8 +59,8 @@ suite "Asynchronous utilities test suite":
|
||||||
fut3.cancel()
|
fut3.cancel()
|
||||||
poll()
|
poll()
|
||||||
check:
|
check:
|
||||||
getCount() == 0'u64
|
getCount() == 0'u
|
||||||
pendingFuturesCount() == 0'u64
|
pendingFuturesCount() == 0'u
|
||||||
else:
|
else:
|
||||||
skip()
|
skip()
|
||||||
|
|
||||||
|
@ -71,17 +71,17 @@ suite "Asynchronous utilities test suite":
|
||||||
|
|
||||||
var fut = simpleProc()
|
var fut = simpleProc()
|
||||||
check:
|
check:
|
||||||
getCount() == 2'u64
|
getCount() == 2'u
|
||||||
pendingFuturesCount() == 2'u64
|
pendingFuturesCount() == 2'u
|
||||||
|
|
||||||
waitFor fut
|
waitFor fut
|
||||||
check:
|
check:
|
||||||
getCount() == 1'u64
|
getCount() == 1'u
|
||||||
pendingFuturesCount() == 1'u64
|
pendingFuturesCount() == 1'u
|
||||||
|
|
||||||
poll()
|
poll()
|
||||||
check:
|
check:
|
||||||
getCount() == 0'u64
|
getCount() == 0'u
|
||||||
pendingFuturesCount() == 0'u64
|
pendingFuturesCount() == 0'u
|
||||||
else:
|
else:
|
||||||
skip()
|
skip()
|
||||||
|
|
Loading…
Reference in New Issue