Skip to content

Using inline for loggin functions with lambda #131

Open
@Omasyo

Description

@Omasyo
suspend fun bar(): String {
    return "A String"
}

suspend fun foo() {
    Napier.d { bar() }
}

The above code doesn't work because the lambda function isn't a suspend function.

I understand we can just use the non-lambda equivalent, but it'll be convenient if we can also call colored functions in the lamba like we do outside of it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions