replace

open suspend override fun replace(token: Token)

Replace Token with Token.id with the given token. If no such Token with the given Token.id exists, NoSuchElementException is thrown.

Parameters

token

set the storage entry with Token.id to this Token.

Throws

NoSuchElementException

if no such storage entry with Token.id exists.