private void Flush() { IDictionary <TKey, T> toReturn = ClearPending(); if (toReturn != null) { Fiber.Enqueue(() => _target(toReturn)); } }
private Task FlushAsync() { IDictionary <TKey, T> toReturn = ClearPending(); if (toReturn != null) { Fiber.Enqueue(() => _target(toReturn)); } return(Task.CompletedTask); }