Async Calls #7
Replies: 3 comments 3 replies
-
As I understand it, we should define https://doc.rust-lang.org/std/task/struct.Waker.html in our executor model to be able to handle |
Beta Was this translation helpful? Give feedback.
-
Here we are talking about "async" in the sense of smart contracts (not rust). send_message("target_address", AsyncMessage {
delivery_slot: Slot(massa.get_current_slot().add_periods(2)),
max_gas: 123,
gas_price: 456,
coins: 789,
data: XXXXXXX,
}); this syscall will use message_send_gas_cost + message_conservation_gas_cost*(delivery_slot - massa.current_slot) from the current execution context. It will also spend max_gas*gas_price+coins from the sender. in target_address: |
Beta Was this translation helpful? Give feedback.
-
In a near future 🚀 We want that a webassembly module could be able to wake up after a timeout. But how do we use metering? Which actors are engaged?
Beta Was this translation helpful? Give feedback.
All reactions