Use an ImmediateExecutor for Promise#flat_map not to schedule unneeded tasks