@doghappy
Hi, can you please review this PR. It adds using of ConfigureAwait(false) for await operations to avoid synchronization with UI main thread context when lib is used in .Net WinForm apps.
I've found that ignoring ConfigureAwait(false) in await calls leads to freezing of lib incoming events reading when main UI context is locked for long time by UI tasks. ListenAsync inherits UI context when ConnectAsync is called from UI thread.
@doghappy Hi, can you please review this PR. It adds using of
ConfigureAwait(false)
forawait
operations to avoid synchronization with UI main thread context when lib is used in .Net WinForm apps.I've found that ignoring
ConfigureAwait(false)
inawait
calls leads to freezing of lib incoming events reading when main UI context is locked for long time by UI tasks.ListenAsync
inherits UI context whenConnectAsync
is called from UI thread.