Function gstd::exec::system_reserve_gas
source · pub fn system_reserve_gas(amount: u64) -> Result<(), Error>
Expand description
Reserve the amount
of gas for system usage.
§Examples
use gcore::exec;
#[no_mangle]
extern "C" fn handle() {
exec::system_reserve_gas(1_000_000).expect("Unable to reserve");
exec::wait();
}
#[no_mangle]
extern "C" fn handle_signal() {
// Message removed from waitlist!
}
§See also
reserve_gas
function reserves gas for further usage.