Fiber
Fibers Lighweight Cooperative Multitasking
Askowl.Fiber.Closure< TS, TTuple > Class Template Referenceabstract

Closure super-class that does all the smarts More...

Inheritance diagram for Askowl.Fiber.Closure< TS, TTuple >:
Askowl.Fiber.IClosure

Static Public Member Functions

static Closure< TS, TTuple > Go (TTuple scope)
 Calling this static will fetch a prepared fiber, add scope and run it. More...
 

Public Attributes

TTuple Scope
 Scope is available for 10 frames after OnComplete in case it holds response data More...
 
Emitter OnComplete => onComplete
 Emitter that is fired when the fiber completes all actions More...
 
Fiber Fiber => fiber
 Fiber that will run / is running / has run in the context of this closure More...
 

Protected Member Functions

abstract void Activities (Fiber fiberToUpdate)
 Add all the steps you need to this override. It is called by the constructor. More...
 

Additional Inherited Members

- Properties inherited from Askowl.Fiber.IClosure
Emitter OnComplete [get]
 A reference to closure.Fiber.OnComplete More...
 
Fiber Fiber [get]
 

Detailed Description

Closure super-class that does all the smarts

Type Constraints
TS :DelayedCache 
TS :Closure 
TS :TS 
TS :TTuple 

Definition at line 85 of file Fiber.cs.

Member Function Documentation

◆ Activities()

abstract void Askowl.Fiber.Closure< TS, TTuple >.Activities ( Fiber  fiberToUpdate)
protectedpure virtual

◆ Go()

static Closure<TS, TTuple> Askowl.Fiber.Closure< TS, TTuple >.Go ( TTuple  scope)
static

Member Data Documentation

◆ Fiber

◆ OnComplete

Emitter Askowl.Fiber.Closure< TS, TTuple >.OnComplete => onComplete

◆ Scope


The documentation for this class was generated from the following file: