actually set task

This commit is contained in:
Jonathan Kelley committed 2024-01-15 17:37:50 -08:00
1 parent 1332b82dc8
commit ee5020c41f
3 files changed
+6 -5

No files matched your search

+1 -1
View File
@@ -89,7 +89,7 @@ impl Runtime {
/// Drop the future with the given TaskId
///
/// This does not abort the task, so you'll want to wrap it in an abort handle if that's important to you
pub fn remove(&self, id: Task) -> Option<LocalTask> {
pub(crate) fn remove_task(&self, id: Task) -> Option<LocalTask> {
self.tasks.borrow_mut().try_remove(id.0)
}