예제 #1
0
        private void Flush()
        {
            IDictionary <TKey, T> toReturn = ClearPending();

            if (toReturn != null)
            {
                Fiber.Enqueue(() => _target(toReturn));
            }
        }
예제 #2
0
        private Task FlushAsync()
        {
            IDictionary <TKey, T> toReturn = ClearPending();

            if (toReturn != null)
            {
                Fiber.Enqueue(() => _target(toReturn));
            }

            return(Task.CompletedTask);
        }