Recca Chao 的 gitHub page

推廣網站開發,包含 Laravel 和 Kotlin 後端撰寫、自動化測試、讀書心得等。Taiwan Kotlin User Group 管理員。

View on GitHub

Problem 10

Description

This problem was asked by Apple.

Implement a job scheduler which takes in a function f and an integer n, and calls f after n milliseconds.

Kotlin Solutions

這一題是觀念題,有很多可以討論的空間

參考解答

參考資料

https://stackoverflow.com/questions/55642383/calling-a-function-with-delay