close

fun close()(source)

Closes the connection once all running transactions have finished.

MDN Reference