-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sdcard: Refactor tasks from closures to anonymous functions
Anonymous functions are all the same type, and thus don't have to be stored in the task array as boxed FnOnce trait objects. A task context is passed around to each task, containing the items that the various tasks need. This also lets us stop relying on RefCell.
- Loading branch information
Showing
1 changed file
with
56 additions
and
59 deletions.
There are no files selected for viewing
This file contains 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