Replies: 3 comments 2 replies
-
I will convert this to a discussion as it does not look like an issue, just a question. |
Beta Was this translation helpful? Give feedback.
-
This isn't an easy thing to do because of the complicated behaviours we need from DefaultPromise. @liyiwen3 Do you have a JMH benchmark demonstrating the problem? |
Beta Was this translation helpful? Give feedback.
-
I don't think it makes sense to optimise this. Blocking methods should mostly have few threads accessing the locks, and with the uncancellable state, it is quite complicated to implement this without locking. |
Beta Was this translation helpful? Give feedback.
-
much thread call await when the DefaultPromise is not done, once DefaultPromise is setted done, then the threads wait in await just wake one by one;while in same situation in the jdk's FutureTask the threads can wake at the same time.why not draw lessons from jdk’s FutureTask
Beta Was this translation helpful? Give feedback.
All reactions