chore(task): add none function
This commit is contained in:
parent
7aadfe6ba6
commit
9b9d373e89
1 changed files with 4 additions and 0 deletions
|
|
@ -31,3 +31,7 @@ pub fn stream<X: Into<Y> + 'static, Y: 'static>(
|
|||
) -> iced::Task<Y> {
|
||||
iced::Task::stream(stream.map(Into::into))
|
||||
}
|
||||
|
||||
pub fn none<Y: 'static>() -> iced::Task<Y> {
|
||||
iced::Task::none()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue