public OutputProvider() { Task.Run(async() => { while (true) { LiftEvent @event = await _events.TakeAsync().ConfigureAwait(false); @event.WriteToConsoleLocking(); // is pretty OK since the output is fast } }); }
public void Write(LiftEvent item) => _events.Add(item);