21 lines
439 B
GDScript3
21 lines
439 B
GDScript3
|
|
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()"
|