21 lines
439 B
GDScript3
Raw Normal View History

2025-01-11 00:25:52 +01:00
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()"