internal RunnableContextSection(CoroutineScheduler scheduler, IRunnable context) { this.scheduler = scheduler; previousContext = scheduler.currentRoutine; scheduler.currentRoutine = context; }
internal CoroutineContextSection(CoroutineScheduler scheduler, Coroutine context) { this.scheduler = scheduler; previousContext = scheduler.currentCoroutine; scheduler.currentCoroutine = context; }