public void AsyncCanBeSent() { var loop = new UvLoopHandle(_logger); loop.Init(_uv); var trigger = new UvAsyncHandle(_logger); var called = false; trigger.Init(loop, () => { called = true; trigger.Dispose(); }, (a, b) => { }); trigger.Send(); loop.Run(); loop.Dispose(); Assert.True(called); }
public void Stop() { _shutdownPostHandle.Send(); _thread.Join(); }
public void Disconnect() { _shutdownPostHandle.Send(); _thread.Join(); }