ably-java icon indicating copy to clipboard operation
ably-java copied to clipboard

async methods

Open mattheworiordan opened this issue 8 years ago • 2 comments

A customer has asked how they can call client.auth.authorize in a non-blocking way. Currently, in the Java lib I believe this is only possible with a new thread.

Should we consider offering async alternatives to traditionally blocking method calls?

cc paddybyers

┆Issue is synchronized with this Jira Task by Unito

mattheworiordan avatar Dec 27 '16 11:12 mattheworiordan

We have async variants of the other REST queries so we should add requestTokenAsync()

paddybyers avatar Dec 27 '16 12:12 paddybyers

We have async variants of the other REST queries so we should add

Sure, so is the rule then that if an async suffixed method does not exist then the dev can assume the method is async? Seems a little haphazard IMHO

mattheworiordan avatar Dec 27 '16 13:12 mattheworiordan