2017-03-18 1 views

答えて

0

は、私はあなたが私がFlux.generateで簡単にやりたいことができ、学んだ:

Flux.generate(
    () -> initialState, 
    (state, sink) -> { 
     Pair<State, Value> p = f.apply(state); // get the new state and the value 
     sink.next(p.right); // this is basically calling the subscriber with the value 
     return p.left; // this returns the new state 
    } 
); 
関連する問題