Improve API, to avoid ignoring errors
This commit is contained in:
parent
d88ef8769e
commit
a65c290dd3
18 changed files with 143 additions and 107 deletions
|
|
@ -40,7 +40,11 @@ interface PushService {
|
|||
*
|
||||
* The method has effect only if the [PushProvider] is different than the current one.
|
||||
*/
|
||||
suspend fun registerWith(matrixClient: MatrixClient, pushProvider: PushProvider, distributor: Distributor)
|
||||
suspend fun registerWith(
|
||||
matrixClient: MatrixClient,
|
||||
pushProvider: PushProvider,
|
||||
distributor: Distributor,
|
||||
): Result<Unit>
|
||||
|
||||
/**
|
||||
* Return false in case of early error.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue