empty

创建一个空 Observable

empty 操作符将创建一个 Observable,这个 Observable 只有一个完成事件。

演示

创建一个空 Observable

它相当于:

Last updated

Was this helpful?