0.14.2
-
motoko (
moc
)-
Added support for sending
cycles
and setting atimeout
in parentheticals.
This is an experimental feature, with new syntax, and now also allowing best-effort
message sends. The legacy callCycles.add<system>
is still supported (#4608).For example, if one wants to attach cycles to a message send, one can prefix it with a parenthetical
(with cycles = 5_000) Coins.mine(forMe);
Similarly a timeout for best-effort execution (also called bounded-wait) can be specified like
let worker = (with timeout = 15) async { /* worker loop */ };
A common base for fields optionally goes before the
with
and can be customised with both fields
after it. Please consult the documentation for more usage information. -
bugfix:
mo-doc
will now generate documentation foractor
s andactor class
es (#4905). -
bugfix: Error messages now won't suggest privileged/internal names (#4916).
-