-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ok, here are the interesting pieces of the code:

interface backends : GLib.Object {
[...]
    public abstract async BACKUP_RETVAL start_backup(out int64
last_backup_time);
[...]
}

private backends backend;
var rv=this.backend.start_backup(out this.last_backup_time);


BTW, Jim Nelson answered that I have to do something like this:

run_async.begin(on_run_async_completed);

/* ... */

void on_run_async(AsyncResult result, Object? source) {
    int result = run_async.end(result);
}


Is this correct?

Thanks.


El 14/08/12 01:10, Eric Gregory escribió:
> On Mon, Aug 13, 2012 at 4:03 PM, rastersoft <ras...@rastersoft.com> wrote:
>
>>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Hi all:
>>
>> I tried to define an interface with an async method, but I receive this
>> error in the line where I try to invoke it in an object that
implements it:
>>
>> backup.vala:246.14-246.43: error: invocation of void method not allowed
>> as expression
>>
>> Are async methods not allowed in interfaces?
>>
>> Thanks.
>>
>
>
> Could you paste the code that invokes the async method in this thread?
>
> - Eric
>

- -- 
Nos leemos
                 RASTER    (Linux user #228804)
ras...@rastersoft.com              http://www.rastersoft.com

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlAqHxsACgkQXEZvyfy1ha+sKgCgxRoFUf2QmxrUQVH5B4n+z21y
6UIAnA4xXKunyl1qz/GajMhKNu4kGj9w
=yxwF
-----END PGP SIGNATURE-----

_______________________________________________
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to