Пример #1
0
 internal RunnableContextSection(CoroutineScheduler scheduler, IRunnable context)
 {
     this.scheduler           = scheduler;
     previousContext          = scheduler.currentRoutine;
     scheduler.currentRoutine = context;
 }
Пример #2
0
 internal CoroutineContextSection(CoroutineScheduler scheduler, Coroutine context)
 {
     this.scheduler             = scheduler;
     previousContext            = scheduler.currentCoroutine;
     scheduler.currentCoroutine = context;
 }