Last active
September 18, 2022 13:52
-
-
Save aleksandarzekovic/fad399cbec6c897f22e5e51f0c2922cc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| internal inner class Worker private constructor() : Thread() { | |
| ... | |
| override fun run() = runWorker() | |
| private fun runWorker() { | |
| ... | |
| while (!isTerminated && state != WorkerState.TERMINATED) { | |
| val task = findTask(mayHaveLocalTasks) | |
| if (task != null) { | |
| ... | |
| executeTask(task) | |
| continue | |
| } | |
| ... | |
| } | |
| ... | |
| } | |
| ... | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment