Add thread examples
This commit is contained in:
11
examples/thread.capnp
Normal file
11
examples/thread.capnp
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user