New returns a new bus with default options. It is equivalent to calling [NewWithOptions] with zero [BusOptions].
()
| 46 | // New returns a new bus with default options. It is equivalent to |
| 47 | // calling [NewWithOptions] with zero [BusOptions]. |
| 48 | func New() *Bus { return NewWithOptions(BusOptions{}) } |
| 49 | |
| 50 | // NewWithOptions returns a new [Bus] with the specified [BusOptions]. |
| 51 | // Use [Bus.Client] to construct clients on the bus. |