Similar to Last
, but you pass it a default item that it can emit if the source Observable fails to emit any items.
observable := rxgo.Empty().LastOrDefault(1)
Output:
1
Similar to Last
, but you pass it a default item that it can emit if the source Observable fails to emit any items.
observable := rxgo.Empty().LastOrDefault(1)
Output:
1