댓글 검색 목록

[Nodejs] Kefir.js - 고성능 및 낮은 메모리 사용에 중점을 둔 리 액티브 라이브러리.

페이지 정보

작성자 운영자 작성일 19-03-07 11:12 조회 370 댓글 0

https://github.com/kefirjs/kefir


// @flow

import Kefir from 'kefir'

function foo(numberStream: Kefir.Observable<number>) {
  numberStream.onValue(x => {
    // Flow knows x is a number here
  });
}

const s = Kefir.constant(5);
// Flow can automatically infer the type of values in the stream and determine
// that `s` is of type Kefir.Observable<number> here.
foo(s);

댓글목록 0

등록된 댓글이 없습니다.

웹학교 로고

온라인 코딩학교

코리아뉴스 2001 - , All right reserved.