Skip to content

Commit

Permalink
Make clearCallbacks() public. (#7753)
Browse files Browse the repository at this point in the history
  • Loading branch information
cheatfate authored and Araq committed May 3, 2018
1 parent 78e946c commit 5063437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pure/asyncfutures.nim
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ proc fail*[T](future: Future[T], error: ref Exception) =
if getStackTrace(error) == "": getStackTrace() else: getStackTrace(error)
future.callbacks.call()

proc clearCallbacks(future: FutureBase) =
proc clearCallbacks*(future: FutureBase) =
future.callbacks.function = nil
future.callbacks.next = nil

Expand Down

0 comments on commit 5063437

Please sign in to comment.