Skip to content

Why does 2 functions share the same name #89

@Shibler0

Description

@Shibler0

2 request functions on Appkit seems to be duplicated
fun request(
request: Request,
onSuccess: () -> Unit,
onError: (Throwable) -> Unit,
) {
checkEngineInitialization()
appKitEngine.request(request, { onSuccess() }, onError)
}
fun request(
request: Request,
onSuccess: (SentRequestResult) -> Unit = {},
onError: (Throwable) -> Unit,
) {
checkEngineInitialization()
appKitEngine.request(request, onSuccess, onError)
}

Only way to bypass is to declare lambda onSuccess as a SentRequestResult

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions