Notice
Recent Posts
Recent Comments
Link
목록continuation (1)
study record
[Swift Concurrency] Intermediate async/await & CheckedContinuation
Chapter 5. Intermediate async/await & CheckedContinuation Continuation continuation은 주어진 포인트에 프로그램의 상태를 추적하는 객체이다. 각각의 비동기 작업 단위를 그것을 위한 전체 스레드 하나를 만드는 것 대신에 continuation에 작업을 할당한다. 이것이 concurrency model이 작업을 하드웨어 가용성에 기반해 더 효율적으로 작업하게 한다. 이것이 CPU 코어만큼만 스레드를 만들게 하고, 스레드들 사이의 변환이 아닌 continuation 사이에서 전환하게 한다. await한 작업이 완료되고 원래 코드가 다시 resume되는 것은 어떻게 작동하는가? 코드가 suspend될 때 그 시점의 전체적인 상태를 캡쳐한 conti..
Swift/Concurrency
2023. 6. 11. 22:56