using GLib;

public class Foo {
       public async string bar (GLib.Cancellable? cancellable) {
       	      return "baz\n";
       }
}

int main (string[] args) {
	var loop = new GLib.MainLoop();
	var foo = new Foo();

	foo.bar.begin(null, (obj, res) => {
		print ("Result: %s\n", foo.bar.end(res));
	});

	loop.run();

	return 0;
}
