Some cosmetic in Future[T] names.

This commit is contained in:
cheatfate 2019-03-31 18:33:01 +03:00
parent c84d847b19
commit adc9035b07
No known key found for this signature in database
GPG Key ID: 46ADD633A7201F95

View File

@ -83,7 +83,7 @@ proc acquire*(lock: AsyncLock) {.async.} =
if not lock.locked:
lock.locked = true
else:
var w = newFuture[void]("asynclock.acquire")
var w = newFuture[void]("AsyncLock.acquire")
lock.waiters.addLast(w)
yield w
lock.locked = true
@ -141,7 +141,7 @@ proc wait*(event: AsyncEvent) {.async.} =
if event.flag:
discard
else:
var w = newFuture[void]("asyncevent.wait")
var w = newFuture[void]("AsyncEvent.wait")
event.waiters.addLast(w)
yield w