mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-06-30 23:29:33 +00:00
Add silent async thread errors convenience
This commit is contained in:
parent
3ed7a22915
commit
746682d422
|
@ -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 New Issue
Block a user