putAsync

abstract suspend fun putAsync(key: String, creationFunction: suspend (C) -> Boolean): Deferred<C?>

Creates a new container for key using creationFunction and returns a Deferred. Any existing container or in-progress creation of key would be replaced by the new function. You can imply that the creation has failed by returning null.