Add a memoizedAcquire method to Resource#4105
Conversation
memoizedAcquire method to ResourcememoizedAcquire method to Resource
|
I did not forget about this PR. Testing it is currently blocked by the |
|
Sadly I think this one might be really blocked on the |
|
To refresh my memory: the reason we couldn't write the test in |
Also point of clarification, there are several tests for |
Yes, the currently committed test does not reflect this, it is still an attempt I wrote before noticing I couldn't reproduce it with |
|
Needs |
Yes, I should have time to work on this this weekend. |
Ideally add it and then mark |
| // TODO enable once `PureConc` finalizer bug is fixed. Test is indefinitely waiting for finalizers as of now | ||
| /* |
There was a problem hiding this comment.
Instead of commenting the test you can use pendingUntilFixed :)
There was a problem hiding this comment.
True, I made a mistake in my test design. It should be ok now. See cd61033
There was a problem hiding this comment.
@armanbilge I took your comment into account and added a pending test. Do you think this PR is ready to be merged now?
As mentioned in #3890 (comment), this is the PR taking over #3890 to add a specialized version of
memoizedforResource.Ref #3513