-
Notifications
You must be signed in to change notification settings - Fork 109
Closed
Description
Looking at today's definition of task.return in CanonicalABI.md I'm left with a few questions I want to clarify:
- For the type of the function generated it takes
$optsinto account, but that means that the intrinsic can be declared as both async and sync, is that intended? Is there a use case for calling this asynchronously? - For the runtime validation when the intrinsic is called it ensures that the
$optsontask.returnequals the options specified on the originalcanon lift, but is this what's intended when taking into account async/callbacks/etc? My (naive) expectation was that I could have an async/callback lifted export and be able to call this intrinsic synchronously, but as-written that means that the intrinsic would generate a trap I think?
cc @dicej
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels