Serve serves a function `name` within an instance `instance`. `paths` define the async parameter paths to subscribe on. `Serve` will call `f` with two handles used for writing and reading encoded results and parameters respectively. On success, `Serve` returns a function, which can be called to stop
(instance string, name string, f HandleFunc, paths ...SubscribePath)
| 25 | // `Serve` will call `f` with two handles used for writing and reading encoded results and parameters respectively. |
| 26 | // On success, `Serve` returns a function, which can be called to stop serving. |
| 27 | Serve(instance string, name string, f HandleFunc, paths ...SubscribePath) (func() error, error) |
| 28 | } |
| 29 | |
| 30 | // Own is an owned resource handle |
no outgoing calls