This commit addresses issue #9877 by implementing Promise.become() method that allows a Promise to be linked directly to a Fiber’s completion result, eliminating unnecessary allocations and callback indirection.
Key changes:
Performance improvement: When a fiber forks work and then waits on a Promise, the traditional approach creates async suspension + callback indirection. The new approach allows direct fiber-to-fiber linkage, reducing allocations and improving performance.
/claim #9877
Kallal Mukherjee
@7908837174
ZIO
@ZIO