SuspendTransforms
添加至 gradle 项目的 buildSrc
中,并在需要配置 suspendTransform
的地方:
suspendTransform {
includeRuntime = false
includeAnnotation = false
addJvmTransformers(
// @JvmBlocking
SuspendTransforms.jvmBlockingTransformer,
// @JvmAsync
SuspendTransforms.jvmAsyncTransformer,
// @JvmSuspendTrans
SuspendTransforms.suspendTransTransformerForJvmBlocking,
SuspendTransforms.suspendTransTransformerForJvmAsync,
SuspendTransforms.suspendTransTransformerForJvmReserve,
// @JvmSuspendTransProperty
SuspendTransforms.jvmSuspendTransPropTransformerForBlocking,
SuspendTransforms.jvmSuspendTransPropTransformerForAsync,
SuspendTransforms.jvmSuspendTransPropTransformerForReserve,
)
}
Content copied to clipboard
Properties
Link copied to clipboard
JsPromise
Link copied to clipboard
JvmAsync
Link copied to clipboard
JvmBlocking
Link copied to clipboard
JvmReserve
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard