launch 會產生一個新的coroutine,整個執行會依序印出數字1 ~ 5。 底下是(拔掉 runBlock ) 簡化之後的範例。因為foo 是suspend function,執行到 delay 會 ...
確定! 回上一頁