NeuroWhAI의 잡블로그

[Rust] executor 직접 만들기 (포스팅 소개) 본문

개발 및 공부/설계

[Rust] executor 직접 만들기 (포스팅 소개)

NeuroWhAI 2020. 2. 7. 19:50


https://stjepang.github.io/2020/01/31/build-your-own-executor.html

 

Build your own executor

Now that we’ve built the block_on() function, it’s time to take one step further and turn it into a real executor. We want our executor to run not just one future at a time but many futures concurrently!

stjepang.github.io

spawn 함수를 만들고 여기에 future를 넘기면 적절하게 감싸고 큐에 올려 실제로 실행되게 합니다.



Comments