autowire
autowire copied to clipboard
ClientCallable.call() signature
This is a bit of a nitpick but when call() is expanded it includes a call to Future.map which requires an execution context. My IDE kept deleting the import because it didn't know it needed it. Would it be possible to change the signature of call() to something like call(implicit executor: ExecutionContext)?
Sure
Probably call()(implicit executor: ExecutionContext) to be source-compatible, unless you want to remove the parens at the end of the call, which is probably unimportant
No you're right, that makes more sense. Thanks!
On this note, is there a way to pass the ExecutionContext explicitly to call?
Not unless we change the signature =P Which nobody has done yet...
#57 closes this