openOrCreate

abstract suspend fun openOrCreate(uniqueName: String, ttl: <Error class: unknown class> = Duration.INFINITE): SyncList

Open existing SyncList by unique name or create a new one if specified name does not exist.

Return

Opened or created SyncList.

Parameters

uniqueName

Unique name to find existing list or to assign to new list upon creation.

ttl

Time to live from now or Duration.INFINITE to indicate no expiry.

Throws

TwilioException

When error occurred while list opening or creation.