Last returns a new Observable which emit only last item. Cannot be run in parallel.
(opts ...Option)
| 1404 | // Last returns a new Observable which emit only last item. |
| 1405 | // Cannot be run in parallel. |
| 1406 | func (o *ObservableImpl) Last(opts ...Option) OptionalSingle { |
| 1407 | return optionalSingle(o.parent, o, func() operator { |
| 1408 | return &lastOperator{ |
| 1409 | empty: true, |
| 1410 | } |
| 1411 | }, true, false, opts...) |
| 1412 | } |
| 1413 | |
| 1414 | type lastOperator struct { |
| 1415 | last Item |
nothing calls this directly
no test coverage detected