invoke

suspend operator fun invoke(parameter: Request): Resource<Result>

Executes the use case with the given parameter.

Wraps execution in a coroutine and handles errors.

Return

A Resource with the result or an error.

Parameters

parameter

The input parameter for the use case.