Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate legacy APIs for 1.0 #1800

Closed
7 tasks done
Neverlord opened this issue Mar 12, 2024 · 0 comments · Fixed by #1880
Closed
7 tasks done

Deprecate legacy APIs for 1.0 #1800

Neverlord opened this issue Mar 12, 2024 · 0 comments · Fixed by #1880
Milestone

Comments

@Neverlord
Copy link
Member

Neverlord commented Mar 12, 2024

Version 1.0 introduces new APIs that render older APIs obsolete. Namely:

  • monitor(hdl) -> monitor(hdl, callback)
  • send(hdl, ...) -> mail(...).send(hdl)
  • request(hdl, timeout, ...) -> mail(...).request(hdl, timeout)
  • set_default_handler(...) -> use [](message msg) { ... } in the behavior instead
  • after(...) >> callback -> use the new set_idle_handler(...) instead
  • aout(...) -> use self->println(...) instead
  • function_view -> use a scoped_actor with mail(...).request(...).receive()

This ticket depends on:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant