exactor v2.0.0 Release Notes
Release Date: 2014-11-15 // over 9 years ago-
๐ New features
defstart
macro which simplifies definition of starters.- ๐
defmulticall
anddefabcast
macros for distributed support. defhandlecall
,defhandlecast
, anddefhandleinfo
for implementation of handlers only- 0๏ธโฃ default arguments can be specified via
\\
defcall
anddefcast
can be called without specifying the body- ๐ Support for
timeout
andhibernate
replies.
๐ฅ Breaking changes
- Pattern matching now works on interface functions as well (previously it was done only in handler functions).
- Starter functions are not automatically generated anymore. You can use
defstart
macro to create them. - When calling
use ExActor.*
options:initial_state
, and:starters
are not available anymore. definfo
is renamed todefhandleinfo
- Option
export: false
is not available indefcall
anddefcast
. If you want to implement just handlers, usedefhandle*
Migration from 1.0
For migration examples, check here and here
A non exhaustive list of changes you may have to do in your project:
- โ Add explicit starters via
defstart
. If you need to supportstart
andstart_link
, you can do it like this:
defstart start(x, y) defstart start_link(x, y) do # initialization runs for both start/2 and start_link/2 end
- Replace all
definit
withdefstart
if possible, or use body-lessdefstart
with an explicitdefinit
. - If you used
initial_state
, set the state explicitly indefstart
. - Replace
definfo
withdefhandleinfo
.