feat: none task utils

This commit is contained in:
Horu 2025-04-22 16:52:35 +10:00 • committed by GitHub
parent 7aadfe6ba6
commit af0498ab09
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()
}