invoke

operator fun invoke(trans: Transport): Flow<Resource<Boolean>>

Invokes the use case to finish a transport.

Return

A Flow emitting Resource states indicating the operation result.

Parameters

trans

The Transport object representing the transport to be finished.