waf

FORK: waf with some random patches
git clone https://git.neptards.moe/neptards/waf.git
Log | Files | Refs | README

foo.vala (226B)


      1 using GLib;
      2 
      3 class Foo : Object
      4 {
      5 	public signal bool an_event();
      6 	
      7 	public Foo(MainLoop loop)
      8 	{
      9 		var time = new TimeoutSource(5000);
     10 		time.set_callback(() => {return an_event();});
     11 		time.attach(loop.get_context());
     12 	}
     13 }
     14