Replies: 2 comments 1 reply
-
@tkiapril Could you introduce that workaround here? 🙏 |
Beta Was this translation helpful? Give feedback.
1 reply
-
As commented previously, I still think that we have two choices.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As of libplanet 0.41.1, initialization of
Swarm<T>
is not fully asynchronous, and usesTask.GetAwaiter().GetResult()
which blocks the main thread and causes context deadlock when used in certain circumstances. As a workaround, in NineChronicles inInit()
method inAgent.cs
,Swarm<T>
initialization is done inside aTask.Run()
invocation to isolate the blocking method from the main thread after libplanet 0.41.1 bump. After a API rework, this should be fixed.The workaround is as follows: from this:
To this:
Beta Was this translation helpful? Give feedback.
All reactions