
axelson
Concurrent Data Processing in Elixir: Chapter 2 Errata: GenServer.cast does not acknowledge (32)
Hello Svilen Gospodinov @svilen,
The book currently states:
When using GenServer.cast/2, we
always get :ok as a reply. In fact, the reply comes almost immediately. This
simply means that the GenServer process has acknowledged the message, while
the actual work is being performed by the process.
But the docs for GenServer.cast/2
state:
This function always returns :ok regardless of whether the destination server (or node) exists. Therefore it is unknown whether the destination server successfully handled the message.
So it is incorrect to state that the “GenServer process has acknowledged the message” when GenServer.cast/2
returns, because the process may already be dead or may not even have existed in the first place.
By the way I’m very much enjoying the book so far!
Popular Prag Prog topics







Modern front-end development for Rails, second edition - Struggling to get the first chapter to work



Other popular topics










Latest in PragProg
Latest (all)
Categories:
Popular Portals
- /elixir
- /opensuse
- /rust
- /kotlin
- /ruby
- /erlang
- /python
- /clojure
- /react
- /quarkus
- /go
- /vapor
- /react-native
- /v
- /wasm
- /django
- /security
- /nodejs
- /centos
- /rails
- /haskell
- /fable
- /gleam
- /js
- /swift
- /deno
- /tailwind
- /assemblyscript
- /laravel
- /symfony
- /phoenix
- /crystal
- /typescript
- /debian
- /adonisjs
- /julia
- /arch-linux
- /svelte
- /spring
- /c-plus-plus
- /flutter
- /preact
- /actix
- /java
- /angular
- /ocaml
- /zig
- /kubuntu
- /scala
- /zotonic
- /vim
- /rocky
- /lisp
- /keyboards
- /html
- /emacs
- /vuejs
- /nim
- /elm
- /nerves