Ggit.init();
+
+ GLib.Timeout.add (1, () => {
+ GLib.debug("Meanwhile");
+ return true;
+ }, GLib.Priority.DEFAULT);
+
var loop = new MainLoop();
var a = new GitLive.Repo("/home/alan/gitlive/gitlive");
-
- a.loadRemoteHeads.begin((obj,res) => {
+ GLib.debug("Starting");
+ a.loadRemoteHeads.begin(true, (obj,res) => {
a.loadRemoteHeads.end(res);
- print("got results");
+ GLib.debug("got results");
a.loadLocalBranches();
loop.quit();
});
ThreadFunc<bool> run = () => {
if (!force && this.remote_heads != null) {
- return;
+ return true;;
}
var r = this.repo.lookup_remote("origin");
r.connect(Ggit.Direction.FETCH, this.callbacks, null, null);
);
}
Idle.add((owned) callback);
-
+ return true;;
+ };
+ new Thread<bool>("thread-example", run);
+ yield;
+
+
}