官术网_书友最值得收藏!

Observables from an array (sequentially)

To create an observable from an array with a given interval to deliver each item from the array, we can use the sequentially() method, as follows:

var myArray = [1,2,3]; 
var intervalBetweenItens = 100;
Bacon
.sequentially(intervalBetweenItens ,myArray);

This code emits the itens of the array with 100 milliseconds of interval between each emission.

主站蜘蛛池模板: 喀喇沁旗| 金华市| 龙泉市| 邻水| 屏山县| 富平县| 大城县| 桑植县| 措勤县| 安溪县| 弥勒县| 手游| 江北区| 禄劝| 交口县| 葫芦岛市| 奇台县| 承德市| 松潘县| 贵溪市| 绍兴县| 开江县| 出国| 弋阳县| 富宁县| 宿州市| 绿春县| 东兴市| 宾川县| 双桥区| 旬阳县| 宝坻区| 客服| 海安县| 汾西县| 衢州市| 南木林县| 凉城县| 平遥县| 岚皋县| 潮州市|