Avatar
actor は suspend した Task の priority に関わらずキューに突っ込んだ順に resume する?
WWDCのセッションでこのように言っていたので、優先順位に合わせて入れ替えるものだと思っていました🤔 Since actors are designed for reentrancy, the runtime may choose to move the higher-priority item to the front of the queue, ahead of the lower-priority items. This way, higher-priority work could be executed first, with lower-priority work following later. This directly addresses the problem of priority inversion, allowing for more effective scheduling and resource utilization. https://developer.apple.com/videos/play/wwdc2021/10254/?time=2160
それとも MainActor は DispatchQueue.main を使っている関係で Task の priority を無視して前から処理する?
DispatchQueue経由なので厳格に順番通りなんですかね...?🤔
(edited)
Dive into the details of Swift concurrency and discover how Swift provides greater safety from data races and thread explosion while...