tryWrite

fun tryWrite(block: (Writer) -> Unit)