[Vala] Bug in async methods?




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

Hi all:

I was working with async methods, and found something odd: if I call an
async method, but, for whatever reason, I never call YIELD inside, the
end callback function is never called.

I attach an example: by compiling it with

    valac -D DO_YIELD -o test_async test_async.vala --pkg=gio-2.0

will do a YIELD inside the async function. But when compiled with

    valac -o test_async test_async.vala --pkg=gio-2.0

will not. In the former case you can see how "End callback called 1" is
printed, because the callback for the end is called; but in the later,
it's not printed.

Is that a bug? If not, why does it work that way?

Thanks.

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

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

iEYEARECAAYFAlCFvwEACgkQXEZvyfy1ha/m+QCfQzIoKObEBhWIO8mwCPtbjBNI
9I8AoJ2kNDrIRYqRsHFCk4sb6eN/pPyC
=yUo1
-----END PGP SIGNATURE-----

Attachment: test_async.vala
Description: Text Data

Attachment: test_async.vala.sig
Description: Binary data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]