installCoroutineSupport

fun <C> AnnotationParser<C>.installCoroutineSupport(scope: CoroutineScope = GlobalScope, context: CoroutineContext = EmptyCoroutineContext, onlyForSuspending: Boolean = false): AnnotationParser<C>

Adds coroutine support to the AnnotationParser.

Return

annotation parser

Parameters

scope

coroutine scope

context

coroutine context

onlyForSuspending

whether the Kotlin execution handler should only be used for suspending functions