Re: [Vala] returning async func from a callback
- From: MohanR <mohan43u gmail com>
- To: Mario Daniel Ruiz Saavedra <desiderantes rocketmail com>
- Cc: "vala-list gnome org" <vala-list gnome org>
- Subject: Re: [Vala] returning async func from a callback
- Date: Tue, 27 Jan 2015 04:10:47 +0800
On Mon, 2015-01-26 at 11:43 -0800, Mario Daniel Ruiz Saavedra wrote:
What about setting the Cancellable as a default null parameter?
Something like:
public async book init(string[] args, Cancellable? cancellable = null)
yes, cancellable will work perfectly as long as the caller catches the
error. I'm trying to find out any way to make sure the caller get
notified even if the caller don't pass a cancellable object and not
catching the errors.
Thanks,
Mohan R
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]