Force server methods to be async and client calls to use await
This commit is contained in:
@@ -13,7 +13,7 @@ class PowerFunction(calculator_capnp.Calculator.Function.Server):
|
||||
we're implementing this on the client side and will pass a reference to
|
||||
the server. The server will then be able to make calls back to the client."""
|
||||
|
||||
def call(self, params, **kwargs):
|
||||
async def call(self, params, **kwargs):
|
||||
"""Note the **kwargs. This is very necessary to include, since
|
||||
protocols can add parameters over time. Also, by default, a _context
|
||||
variable is passed to all server methods, but you can also return
|
||||
|
||||
Reference in New Issue
Block a user