- Mastering Reactive JavaScript
- Erich de Souza Oliveira
- 58字
- 2021-07-09 20:33:07
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.
推薦閱讀
- 電腦組裝與系統(tǒng)安裝
- Mastering ElasticSearch
- Windows Server 2019 Cookbook
- 鴻蒙生態(tài):開(kāi)啟萬(wàn)物互聯(lián)的智慧新時(shí)代
- Linux內(nèi)核完全注釋?zhuān)?0周年版·第2版)
- 白話區(qū)塊鏈
- 精解Windows 8
- Ceph分布式存儲(chǔ)實(shí)戰(zhàn)
- AutoCAD 2014中文版從入門(mén)到精通
- Windows 8實(shí)戰(zhàn)從入門(mén)到精通(超值版)
- Red Hat Enterprise Linux 6.4網(wǎng)絡(luò)操作系統(tǒng)詳解
- Linux應(yīng)用大全 基礎(chǔ)與管理
- iOS 10快速開(kāi)發(fā):18天零基礎(chǔ)開(kāi)發(fā)一個(gè)商業(yè)應(yīng)用
- 15分鐘!畫(huà)出我的漫畫(huà)角色:賣(mài)萌篇
- Linux從入門(mén)到精通