public final Mono < T > defaultIfEmpty ( T defaultV ) { if ( this instanceof Fuseable . ScalarCallable ) { try { T v = block ( ) ; if ( v == null ) { return Mono . just ( defaultV ) ; } } catch ( Throwable e ) { //leave MonoError returns as this } return this ; } return onAssembly ( new MonoDefaultIfEmpty <> ( this , defaultV ) ) ; }
Provide a default single value if this mono is completed without any data