Skip to content

Commit 12e0ffa

Browse files
committed
Remove the Key type from JobQueue
This isn't actually necessary with a bit of refactoring, and in general it makes management of `JobQueue` simpler since there's one less type to worry about. The one main usage of `Key` vs `Unit` was that `Key` was `Send` to be placed in `Message`, but this was replaced by just assigning each `Unit` an ever-increasing integer, and then `Finished` contains the integer rather than the `Key` itself which we can map once we get back to the main thread.
1 parent 21cae01 commit 12e0ffa

File tree

1 file changed

+107
-158
lines changed

1 file changed

+107
-158
lines changed

0 commit comments

Comments
 (0)