Interplay between the coherent and dissipative cavity–magnon couplings in a nearly closed cavity | Synapse