/**
 * Copyright 2008-2009. Chongqing Communications Industry Services Co.,Ltd Information Technology Branch. All rights reserved. <a>http://www.crunii.com</a>
 */
package com.crunii.micro.gateway.test;

import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

/**
 * @author 田平 create 2019年11月19日下午2:10:02
 *
 */
public class ReactorTest3 {

	public static void main(String[] args) throws Exception {
		Flux<String> flux = Flux.just("0", "1", "2", "abc").map(i -> Integer.parseInt(i) + "").onErrorResume(e -> Mono.just("input string is not a number ," + e.getMessage()));
		flux.log().subscribe(System.out::println);
	}
}
