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
Release 0.41.92
[vala-gnome.git]
/
tests
/
asynchronous
/
bug793158.vala
blob
445092b9eaa5c2c92a1ac5d064fca440c24e7b8b
1
errordomain FooError
{
2
BAR
;
3
}
4
5
class
Foo
:
Object
{
6
public
async
bool
bar
()
throws FooError
{
7
return
true
;
8
}
9
}
10
11
MainLoop loop
;
12
13
void
main
() {
14
loop
=
new
MainLoop
();
15
var
foo
=
new
Foo
();
16
foo
.
bar
.
begin
((
o
,
r
) => {
17
loop
.
quit
();
18
});
19
loop
.
run
();
20
}