We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49d9100 commit 70f6433Copy full SHA for 70f6433
gio/src/task.rs
@@ -107,7 +107,7 @@ macro_rules! task_impl {
107
108
#[doc(alias = "g_task_get_cancellable")]
109
#[doc(alias = "get_cancellable")]
110
- pub fn cancellable(&self) -> Cancellable {
+ pub fn cancellable(&self) -> Option<Cancellable> {
111
unsafe { from_glib_none(ffi::g_task_get_cancellable(self.to_glib_none().0)) }
112
}
113
0 commit comments