mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-11-04 23:34:39 +00:00
Add silent async thread errors convenience
This commit is contained in:
parent
3ed7a22915
commit
746682d422
1 changed files with 8 additions and 0 deletions
|
@ -52,6 +52,14 @@ public class Async
|
|||
throw err;
|
||||
}
|
||||
}
|
||||
|
||||
public static async void thread_try(ThreadFunc func)
|
||||
{
|
||||
try
|
||||
{
|
||||
yield thread(func);
|
||||
} catch {}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue