kroto-plus icon indicating copy to clipboard operation
kroto-plus copied to clipboard

Allow server implementations to configure `CoroutineStart` strategy for rpcs

Open marcoferrer opened this issue 5 years ago • 0 comments

It would be really useful to be able to configure what CoroutineStart strategy is used for invoking rpc methods. The most straight forward approach is to introduce a new field to the ServiceScope interface. One thing to consider for this api is whether or not it should be configurable on a per rpc basis.

The field should default to CoroutineStart.DEFAULT and only allow ATOMIC and UNDISPATCHED as possible values. We're preventing usage of LAZY since it doesnt make sense in this case and introduces issues.

marcoferrer avatar Apr 08 '19 23:04 marcoferrer