You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
invalid_arg "The current promise already holds the resource given"
elseMiou_sequence.(add Left) self.resources res
does not check whether the resource is already owned by some other fiber (or promise). Currently, if you call Ownership.own on a resource that is already owned by some other fiber, then it will corrupt the resource list of that other fiber.
The text was updated successfully, but these errors were encountered:
This is more in line with the Rust-style exclusion model you might have in mind when manipulating resources. I'll try to find a solution here. The Ownership API is still experimental and I'll have to iterate on it to see if it works. Thanks.
I noticed recently that
Ownership.own
:miou/lib/miou.ml
Lines 985 to 993 in 072de4f
does not check whether the resource is already owned by some other fiber (or promise). Currently, if you call
Ownership.own
on a resource that is already owned by some other fiber, then it will corrupt the resource list of that other fiber.The text was updated successfully, but these errors were encountered: