為 Task 設置 Timeout

  • 107
  • 0

Task timeout sample code

最近有需要為task設置timeout的需求,試一試覺得這樣寫是目前找到感覺比較好的寫法