Coroutine

scalation.simulation.Coroutine
See theCoroutine companion class
object Coroutine

The Coroutine companion object provides functions to start-up and shutdown the coroutine system as well as counters for the Coroutine class.

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Coroutine.type

Members list

Value members

Concrete methods

inline def numTerminted: Int

Return the number of threads that have terminated.

Return the number of threads that have terminated.

Attributes

def shutdown(): Int

Shutdown the coroutine thread pool and return the largest number of threads that have ever simultaneously been in the pool. Must be called at program end or application will hang.

Shutdown the coroutine thread pool and return the largest number of threads that have ever simultaneously been in the pool. Must be called at program end or application will hang.

Attributes

def waitThreadFinish(): Unit

Wait for threads in threadArr to finish and then clear the array buffer, otherwise, there will be a memory leak

Wait for threads in threadArr to finish and then clear the array buffer, otherwise, there will be a memory leak

Attributes