private static void Return(YieldInstructionWrapper wrapper) { lock (pool) { pool.Push(wrapper); } }
internal void Handle(YieldInstruction yieldInstruction, ISynchronizationContext context, CoroutineWrapper wrapper) { Log("Handle yield instruction"); var yieldWrapper = YieldInstructionWrapper.Create(yieldInstruction, context, wrapper); unityThread.Post(StartYieldWrapper, this, yieldWrapper); }