# spawn

Theme:

- Index

Search:
Group by:
Source Edit

This module implements threadpool's `spawn`.

# Imports

ast, types, idents, magicsys, msgs, options, modulegraphs, lowerings, liftdestructors, renderer, trees

# Types

    TSpawnResult = enum
      srVoid, srFlowVar, srByVar

  Source Edit

# Procs

    proc spawnResult(t: PType; inParallel: bool): TSpawnResult {.
        ...raises: [Exception], tags: [RootEffect], forbids: [].}

  Source Edit

    proc wrapProcForSpawn(g: ModuleGraph; idgen: IdGenerator; owner: PSym;
                          spawnExpr: PNode; retType: PType; barrier: PNode = nil;
                          dest: PNode = nil): PNode {....raises: [Exception,
        ValueError, OSError, KeyError, IOError, ERecoverableError], tags: [
        RootEffect, ReadDirEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect],
        forbids: [].}

  Source Edit