Skip to content

0.14.2

Compare
Choose a tag to compare
@github-actions github-actions released this 26 Feb 21:28
· 80 commits to master since this release
8add58e
  • motoko (moc)

    • Added support for sending cycles and setting a timeout in parentheticals.
      This is an experimental feature, with new syntax, and now also allowing best-effort
      message sends. The legacy call Cycles.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 for actors and actor classes (#4905).

    • bugfix: Error messages now won't suggest privileged/internal names (#4916).