tap

fun tap(f: suspend (A) -> Unit): Resource<A>

Useful for setting up/configuring an acquired resource