Add thread examples

This commit is contained in:
Jason Paryani
2014-08-26 15:21:46 -07:00
parent a1f7d32853
commit 95e706f2f9
3 changed files with 118 additions and 0 deletions

11
examples/thread.capnp Normal file
View File

@@ -0,0 +1,11 @@
@0xf5745ea9c82baa3a;
interface Example {
interface StatusSubscriber {
status @0 (value: Bool);
# Call the function on the given parameters.
}
longRunning @0 () -> (value: Bool);
subscribeStatus @1 (subscriber: StatusSubscriber);
}