repo.or.cz
/
vala-gnome.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
vapi: Update GIR-based bindings
[vala-gnome.git]
/
tests
/
asynchronous
/
bug777242.vala
blob
2fe686de052c352f687da04bd0e54956cd3f0d4d
1
int
i
=
0
;
2
3
async
void
run
() {
4
while
(
true
) {
5
string
foo
;
6
if
(
i
==
0
) {
7
foo
=
"foo"
;
8
i
++;
9
}
else
{
10
break
;
11
}
12
}
13
}
14
15
void
main
() {
16
var
loop
=
new
MainLoop
();
17
Idle
.
add
(() => {
18
run
.
begin
();
19
loop
.
quit
();
20
return
false
;
21
});
22
loop
.
run
();
23
}