21 lines
439 B
GDScript
21 lines
439 B
GDScript
extends Notification
|
|
class_name OnCompletedNotification
|
|
|
|
## Represents an OnCompleted notification to an observer.
|
|
|
|
func _init():
|
|
super._init()
|
|
self.kind = "C"
|
|
|
|
func _accept(
|
|
_on_next : Callable,
|
|
_on_error : Callable = GDRx.basic.noop,
|
|
on_completed : Callable = GDRx.basic.noop):
|
|
return on_completed.call()
|
|
|
|
func _accept_observer(observer : ObserverBase):
|
|
return observer.on_completed()
|
|
|
|
func _to_string():
|
|
return "OnCompleted()"
|