mirror of
https://github.com/zap-proto/erlang.git
synced 2026-10-30 15:05:14 +00:00
do not spawn a new process for each message until later, if really needed (i.e. it's a blocking or long running operation). this makes sure the messages are processed in order, which is crucial to keep up with request ids etc.
14 lines
324 B
Bash
Executable File
14 lines
324 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -exuo pipefail
|
|
|
|
erlc +debug_info addressbook_capnp.erl calculator_capnp.erl \
|
|
calculator-client.erl calculator-server.erl
|
|
|
|
./addressbook.sh write | ./addressbook.sh read
|
|
|
|
erl -eval "'calculator-server':run()" -noinput -noshell &
|
|
sleep 0.1
|
|
erl -eval "'calculator-client':run()" -noinput -noshell
|
|
kill %+
|