CoroutineTest

scalation.simulation.CoroutineTest
object CoroutineTest

The CoroutineTest object is used to test the Coroutine class. Should print: start coroutines Cor1: phase 1 inside Cor1 the id is 22 isVirtual true VirtualThread[#22]/runnable@ForkJoinPool-1-worker-1 Cor2: phase 1 inside Cor2 the id is 26 isVirtual true VirtualThread[#26]/runnable@ForkJoinPool-1-worker-3 Cor1: phase 2 Cor2: phase 2

runMain scalation.simulation.runCoroutineTest

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

class Cor1 extends Coroutine

Attributes

Supertypes
class Coroutine
trait Runnable
class Object
trait Matchable
class Any
class Cor2 extends Coroutine

Attributes

Supertypes
class Coroutine
trait Runnable
class Object
trait Matchable
class Any

Value members

Concrete methods

def runCoroutineTest(): Unit

Concrete fields

val cor1: Cor1
val cor2: Cor2