module async/internalstd/async/internal
pubstd/async/internal/async-await: (E, V) -> V effect async-awaitstd/async/internal/async-await: (E, V) -> V
ctl do-await( setupsetup: (evloop : event-loop, resume : (result : await-result<$705>, isdone : bool) -> ioc ()) -> ioc error<dispose-fn> : await-setupstd/async/internal/await-setup: V -> V<aa: V>, async-scopeasync-scope: async-scope : async-scopestd/async/internal/async-scope: V, labellabel: string : stringstd/core/types/string: V ) : await-resultstd/async/internal/await-result: V -> V<aa: V>
fun no-await( setupsetup: (evloop : event-loop, resume : (result : await-result<$773>, isdone : bool) -> ioc ()) -> ioc error<dispose-fn> : await-setupstd/async/internal/await-setup: V -> V<aa: V>, async-scopeasync-scope: async-scope : async-scopestd/async/internal/async-scope: V, labellabel: string : stringstd/core/types/string: V, cbcb: (await-result<$773>) -> ioc () : await-resultstd/async/internal/await-result: V -> V<aa: V> -> iocstd/core/ioc: E (std/core/types/unit: V)std/core/types/unit: V ) : (std/core/types/unit: V)std/core/types/unit: V
pubstd/async/internal/async-cancel: (E, V) -> V linear effect async-cancelstd/async/internal/async-cancel: (E, V) -> V
val async-scope : async-scopestd/async/internal/async-scope: V
fun cancel-scope( scopescope: async-scope : async-scopestd/async/internal/async-scope: V ) : (std/core/types/unit: V)std/core/types/unit: V
fun is-scope-canceled( scopescope: async-scope : async-scopestd/async/internal/async-scope: V ) : boolstd/core/types/bool: V
pubstd/async/internal/async-ioc: (E, V) -> V linear effect async-iocstd/async/internal/async-ioc: (E, V) -> V
fun async-ioc( actionaction: () -> ioc $1235 : () -> iocstd/core/ioc: E aa: V ) : aa: V
fun async-schedule-ioc( actionaction: () -> ioc () : () -> iocstd/core/ioc: E (std/core/types/unit: V)std/core/types/unit: V ) : (std/core/types/unit: V)std/core/types/unit: V
pub alias dispose-fnstd/async/internal/dispose-fn: V = () -> iocstd/core/ioc: E (std/core/types/unit: V)std/core/types/unit: V
pub alias event-loopstd/async/internal/event-loop: V = anystd/core/types/any: V
pub alias await-setupstd/async/internal/await-setup: V -> V<aa: V> = (evloop : event-loopstd/async/internal/event-loop: V, resume : (result:await-resultstd/async/internal/await-result: V -> V<aa: V>, isdone:boolstd/core/types/bool: V) -> iocstd/core/ioc: E (std/core/types/unit: V)std/core/types/unit: V) -> iocstd/core/ioc: E errorstd/core/exn/error: V -> V<dispose-fnstd/async/internal/dispose-fn: V>
pub type await-resultstd/async/internal/await-result: V -> V<aa: V>
Cancelstd/async/internal/Cancel: forall<a> await-result<a>
Exceptionstd/async/internal/Exception: forall<a> (exn : exception) -> await-result<a>( exn: exceptionstd/core/exn/exception: V )
Resultstd/async/internal/Result: forall<a> (value : a) -> await-result<a>( value: aa: V )
alias scope-idstd/async/internal/scope-id: V = intstd/core/types/int: V
abstract value type async-scopestd/async/internal/async-scope: V
Scopestd/async/internal/Scope: (scopes : list<scope-id>) -> async-scope( scopesstd/async/internal/async-scope/scopes: (async-scope) -> list<scope-id> : liststd/core/types/list: V -> V<scope-idstd/async/internal/scope-id: V> )
pub fun async-scope/showstd/async/internal/async-scope/show: (async-scope) -> string( Scopestd/async/internal/Scope: (scopes : list<scope-id>) -> async-scope(idsids: list<scope-id>) : async-scopestd/async/internal/async-scope: V )result: -> total string : stringstd/core/types/string: V
idsids: list<scope-id>.mapstd/core/list/map: (xs : list<scope-id>, f : (scope-id) -> string) -> list<string>(showstd/core/int/show: (i : int) -> string).joinstd/core/list/joinsep/join: (xs : list<string>, sep : string) -> string("<"literal: string
count= 1)
pub val root-scopestd/async/internal/root-scope: async-scope = Scopestd/async/internal/Scope: (scopes : list<scope-id>) -> async-scope([std/core/types/Cons: forall<a> (head : a, tail : list<a>) -> list<a>0literal: int
dec = 0
hex8 = 0x00
bit8 = 0b00000000]std/core/types/Nil: forall<a> list<a>)
pub fun new-child-scope-iocstd/async/internal/new-child-scope-ioc: (async-scope) -> ioc async-scope( Scopestd/async/internal/Scope: (scopes : list<scope-id>) -> async-scope(idsids: list<scope-id>) : async-scopestd/async/internal/async-scope: V )result: -> ioc async-scope : iocstd/core/ioc: E async-scopestd/async/internal/async-scope: V
val cidcid: int = uniquestd/core/unique: () -> ioc int()+std/core/int/(+): (x : int, y : int) -> ioc int1literal: int
dec = 1
hex8 = 0x01
bit8 = 0b00000001
Scopestd/async/internal/Scope: (scopes : list<scope-id>) -> async-scope(Consstd/core/types/Cons: forall<a> (head : a, tail : list<a>) -> list<a>(cidcid: int,idsids: list<scope-id>))
pub fun new-child-scopestd/async/internal/new-child-scope: (scope : async-scope) -> async-ioc async-scope( scopescope: async-scope : async-scopestd/async/internal/async-scope: V )result: -> async-ioc async-scope : async-iocstd/async/internal/async-ioc: (E, V) -> V async-scopestd/async/internal/async-scope: V
async-iocstd/async/internal/async-ioc: (action : () -> ioc async-scope) -> async-ioc async-scope{ new-child-scope-iocstd/async/internal/new-child-scope-ioc: (async-scope) -> ioc async-scope(scopescope: async-scope) }
fun scope-idstd/async/internal/scope-id: (async-scope) -> scope-id( Scopestd/async/internal/Scope: (scopes : list<scope-id>) -> async-scope(idsids: list<scope-id>) )result: -> total scope-id : scope-idstd/async/internal/scope-id: V
idsids: list<scope-id>.headstd/core/list/head: (xs : list<scope-id>, default : scope-id) -> scope-id(0literal: int
dec = 0
hex8 = 0x00
bit8 = 0b00000000)
pub fun parentstd/async/internal/parent: (async-scope) -> async-scope( Scopestd/async/internal/Scope: (scopes : list<scope-id>) -> async-scope(idsids: list<scope-id>) : async-scopestd/async/internal/async-scope: V )result: -> total async-scope : async-scopestd/async/internal/async-scope: V
match idsids: list<scope-id>
Consstd/core/types/Cons: forall<a> (head : a, tail : list<a>) -> list<a>(_,iddidd: list<scope-id> as Consstd/core/types/Cons: forall<a> (head : a, tail : list<a>) -> list<a>) -> Scopestd/async/internal/Scope: (scopes : list<scope-id>) -> async-scope(iddidd: list<scope-id>)
_ -> root-scopestd/async/internal/root-scope: async-scope
pub fun (<=)std/async/internal/(<=): (async-scope, root : async-scope) -> bool( Scopestd/async/internal/Scope: (scopes : list<scope-id>) -> async-scope(idsids: list<scope-id>) : async-scopestd/async/internal/async-scope: V, rootroot: async-scope : async-scopestd/async/internal/async-scope: V )result: -> total bool : boolstd/core/types/bool: V
val sidsid: scope-id = rootroot: async-scope.scope-idstd/async/internal/scope-id: (async-scope) -> scope-id
idsids: list<scope-id>.findstd/core/list/find: (xs : list<scope-id>, pred : (scope-id) -> bool) -> maybe<scope-id>(fnfn: (x : scope-id) -> bool(xx: scope-id) xx: scope-id ==std/core/int/(==): (x : int, y : int) -> bool sidsid: scope-id).is-juststd/core/types/is-just: (maybe : maybe<scope-id>) -> bool
pub fun async-scope/(==)std/async/internal/async-scope/(==): (s1 : async-scope, s2 : async-scope) -> bool(s1s1: async-scope : async-scopestd/async/internal/async-scope: V, s2s2: async-scope : async-scopestd/async/internal/async-scope: V )result: -> total bool : boolstd/core/types/bool: V
s1s1: async-scope.scope-idstd/async/internal/scope-id: (async-scope) -> scope-id ==std/core/int/(==): (x : int, y : int) -> bool s2s2: async-scope.scope-idstd/async/internal/scope-id: (async-scope) -> scope-id