pub fn emit_deprecation_warning(code: &str, message: &str)
A DeprecationWarning fires at most once per code per process, matching the warned latches Node keeps at each deprecation site.
DeprecationWarning
code
warned