You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes it is, normal once off running for async handle.
There are some cases where you need to worry about closure, I typically do something like this:
asyncHandle = this.loop.CreateAsync(
handle =>
{
var disposible = handle.UserToken as IDisposable;
disposible?.Dispose();
handle.Dispose();
});
asyncHandle.UserToken = tcp; // Save to the handle cookie
asyncHandle.Send();
Is it valid to Dispose an Async Handle within its callback like this?:
The purpose of this example is to schedule the disposal of another loop-bound resource on the loop thread.
The text was updated successfully, but these errors were encountered: