📜  blockingSIngle 与首先阻塞 - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:25.403000             🧑  作者: Mango

代码示例1
first() — block until the Observable emits an item, then return the first item 
emitted by the Observable

single( ) — if the Observable completes after emitting a single item, return 
that item, otherwise throw an exception