Hide internal Task constructors

This commit is contained in:
Héctor Ramón Jiménez 2024-07-05 01:13:28 +02:00
parent 2b19471d1c
commit 88611d7653
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
11 changed files with 140 additions and 136 deletions

View file

@ -203,7 +203,7 @@ where
let (program, task) = runtime.enter(|| P::new(flags));
if let Some(stream) = task.into_stream() {
if let Some(stream) = runtime::task::into_stream(task) {
runtime.run(stream);
}
@ -1114,7 +1114,7 @@ fn update<P: Program, E: Executor>(
let task = runtime.enter(|| program.update(message));
debug.update_finished();
if let Some(stream) = task.into_stream() {
if let Some(stream) = runtime::task::into_stream(task) {
runtime.run(stream);
}
}

View file

@ -5,7 +5,7 @@ use crate::runtime::{self, Task};
/// Query for available system information.
pub fn fetch_information() -> Task<Information> {
Task::oneshot(|channel| {
runtime::task::oneshot(|channel| {
runtime::Action::System(Action::QueryInformation(channel))
})
}