public void Flush() { IOLoop.QueueWait(() => { foreach (var manager in _engine.Torrents) _writer.Flush(manager.Torrent.Files); }); }