chore(task): add none function

This commit is contained in:
Horu 2025-04-22 22:37:58 +10:00 committed by GitHub
parent 7aadfe6ba6
commit 9b9d373e89
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()
}