Exemplo n.º 1
0
        private void Flush()
        {
            IDictionary <TKey, T> toReturn = ClearPending();

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

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

            return(Task.CompletedTask);
        }