Merge pull request #11181 from nim-lang/pending-future-tracking

Implements pending future tracking in async.
This commit is contained in:
Andreas Rumpf 2019-05-08 20:37:31 +02:00 • committed by GitHub
commit aa76857462
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 75 additions and 3 deletions

View file

@ -445,6 +445,12 @@ proc getStackTraceEntries*(e: ref Exception): seq[StackTraceEntry] =
else:
result = move(e.trace)
proc getStackTraceEntries*(): seq[StackTraceEntry] =
## Returns the stack trace entries for the current stack trace.
## This is not yet available for the JS backend.
when hasSomeStackTrace:
rawWriteStackTrace(result)
const nimCallDepthLimit {.intdefine.} = 2000
proc callDepthLimitReached() {.noinline.} =