Skip to content

Beta-2

Pre-release
Pre-release

Choose a tag to compare

@cohix cohix released this 18 Dec 02:27
· 15 commits to master since this release
v0.2.0
23aac90

This release contains some big improvements to the ergonomics of the Grav API. It is a breaking change.

The big update is with how message replies and timeouts are handled.

Methods that previously took a timeout now have an *Until variant instead such that timeouts are completely optional.

What was previously called MessageTicket is now called MsgReceipt and has become a "smart" type that is created whenever a message is sent. A receipt is an extension of the pod that sent the original message, and methods on this type allow for receiving replies to the sent message. For example:

pod.Send(msg).WaitOn(func(msg Message) {
    // get your reply here!
})

WaitUntil and OnReply (async variant) are also available.