Dart RPC API Method using async

144 views Asked by At

Using dart rpc can you label a API method as "async"? I see in the documentation you can return a future, but when I try to label the method async it seems to create a lot of problems.

2

There are 2 answers

0
BeatingToADifferentRobot On

Async is supported. Thanks to the support on this thread. https://github.com/dart-lang/rpc/issues/29

0
Daedalus On

Async simply allows you to use the await keyword.

See docs here.