Skip to content

Commit

Permalink
[CN] Fix handle_case/3 to handle_call/3 (elixirschool#1041)
Browse files Browse the repository at this point in the history
  • Loading branch information
nanlong authored and cizixs committed Apr 11, 2017
1 parent 277ad06 commit 3ab3d50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cn/lessons/advanced/otp-concurrency.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ iex> SimpleQueue.queue
```

## 异步函数
`handle_cast/2` 是处理异步函数的, 这个函数和 `handle_case/3` 的用法一样,除了它不接受调用者作为参数而且没有返回值。
`handle_cast/2` 是处理异步函数的, 这个函数和 `handle_call/3` 的用法一样,除了它不接受调用者作为参数而且没有返回值。

我们把 enqueue 功能设计成异步的:更新 queue 的内容,但并不阻塞当前程序的运行:

Expand Down

0 comments on commit 3ab3d50

Please sign in to comment.