huijeong-kim / huijeong-kim.github.io

https://huijeong-kim.github.io
5 stars 0 forks source link

post/2022-08-21-actix-actor-async-ctx-1/ #2

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

Actix actor의 AsyncContext 활용하기 (1) – my-dev-note –

Actix에서 actor를 생성하면, 해당 actor를 실행하는 문맥(context)에 해당하는 Context가 생성 되고, Context는 actor의 동작을 정의합니다. 그 중 Context를 활용해서 actor가 future를 실행, 취소, 기다리는 방법을 알아봅니다. 아래 예제 코드들은 actix 0.13.0 버전을 사용했습니다.

http://huijeong-kim.github.io/2022/08/21/actix-actor-async-ctx-1/

yyu-nim commented 2 years ago

Context에 대한 사용 예제가 많이 없어서 궁금했었는데, 공유해주신 예제 보니 이해가 잘 되네요 감사합니다!