Kotlin generic for Void and value
In Kotlin, is there a way to pass a generic type that will also works with Void type?
I want to pass a Task which can have either Void or a valid Credential object type.
How I can modify the constructor
class TaskWrapperImpl(private val task: Task) {}