Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(coroutine): Add LambdaCallable::onCancel to cancel coroutine when callable is cancelled #732

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions harness/tests/scripts/CopyModificationCheckTestClass.gdj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.IdentityPointer,
godot.common.interop.ValuePointer,
kotlin.Any
]
signals = [
Expand Down
2 changes: 2 additions & 0 deletions harness/tests/scripts/CoreTypePropertyChecks.gdj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.IdentityPointer,
godot.common.interop.ValuePointer,
kotlin.Any
]
signals = [
Expand Down
2 changes: 2 additions & 0 deletions harness/tests/scripts/ScriptInOtherSourceDir.gdj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.IdentityPointer,
godot.common.interop.ValuePointer,
kotlin.Any
]
signals = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.IdentityPointer,
godot.common.interop.ValuePointer,
kotlin.Any
]
signals = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.IdentityPointer,
godot.common.interop.ValuePointer,
kotlin.Any
]
signals = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.IdentityPointer,
godot.common.interop.ValuePointer,
kotlin.Any
]
signals = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.IdentityPointer,
godot.common.interop.ValuePointer,
kotlin.Any
]
signals = [
Expand Down
2 changes: 2 additions & 0 deletions harness/tests/scripts/godot/tests/CoreTypesIdentityTest.gdj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.IdentityPointer,
godot.common.interop.ValuePointer,
kotlin.Any
]
signals = [
Expand Down
2 changes: 2 additions & 0 deletions harness/tests/scripts/godot/tests/FuncRefTest.gdj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.IdentityPointer,
godot.common.interop.ValuePointer,
kotlin.Any
]
signals = [
Expand Down
3 changes: 3 additions & 0 deletions harness/tests/scripts/godot/tests/Invocation.gdj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.IdentityPointer,
godot.common.interop.ValuePointer,
kotlin.Any
]
signals = [
Expand Down Expand Up @@ -40,6 +42,7 @@ properties = [
nav_meshes_dictionary,
nullable_dictionary,
color,
rid,
packed_byte_array,
packed_int32_array,
packed_float64_array,
Expand Down
5 changes: 4 additions & 1 deletion harness/tests/scripts/godot/tests/JavaTestClass.gdj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.IdentityPointer,
godot.common.interop.ValuePointer,
kotlin.Any
]
signals = [
Expand All @@ -30,7 +32,8 @@ properties = [
dictionary
]
functions = [
greeting,
_ready,
greeting,
connect_and_trigger_signal,
signal_callback
]
2 changes: 2 additions & 0 deletions harness/tests/scripts/godot/tests/LambdaCallableTest.gdj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.IdentityPointer,
godot.common.interop.ValuePointer,
kotlin.Any
]
signals = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.IdentityPointer,
godot.common.interop.ValuePointer,
kotlin.Any
]
signals = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.IdentityPointer,
godot.common.interop.ValuePointer,
kotlin.Any
]
signals = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.IdentityPointer,
godot.common.interop.ValuePointer,
kotlin.Any
]
signals = [
Expand Down
2 changes: 2 additions & 0 deletions harness/tests/scripts/godot/tests/binding/BindingA.gdj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.IdentityPointer,
godot.common.interop.ValuePointer,
kotlin.Any
]
signals = [
Expand Down
2 changes: 2 additions & 0 deletions harness/tests/scripts/godot/tests/binding/BindingB.gdj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.IdentityPointer,
godot.common.interop.ValuePointer,
kotlin.Any
]
signals = [
Expand Down
2 changes: 2 additions & 0 deletions harness/tests/scripts/godot/tests/binding/BindingTest.gdj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ baseType = Object
supertypes = [
godot.Object,
godot.core.KtObject,
godot.common.interop.IdentityPointer,
godot.common.interop.ValuePointer,
kotlin.Any
]
signals = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.IdentityPointer,
godot.common.interop.ValuePointer,
kotlin.Any
]
signals = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.IdentityPointer,
godot.common.interop.ValuePointer,
kotlin.Any
]
signals = [
Expand Down
2 changes: 2 additions & 0 deletions harness/tests/scripts/godot/tests/coretypes/BasisTest.gdj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.IdentityPointer,
godot.common.interop.ValuePointer,
kotlin.Any
]
signals = [
Expand Down
2 changes: 2 additions & 0 deletions harness/tests/scripts/godot/tests/coretypes/StringTest.gdj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.IdentityPointer,
godot.common.interop.ValuePointer,
kotlin.Any
]
signals = [
Expand Down
2 changes: 2 additions & 0 deletions harness/tests/scripts/godot/tests/coretypes/Vector3Test.gdj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.IdentityPointer,
godot.common.interop.ValuePointer,
kotlin.Any
]
signals = [
Expand Down
9 changes: 7 additions & 2 deletions harness/tests/scripts/godot/tests/coroutine/CoroutineTest.gdj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ baseType = Object
supertypes = [
godot.Object,
godot.core.KtObject,
godot.common.interop.IdentityPointer,
godot.common.interop.ValuePointer,
kotlin.Any
]
signals = [
Expand All @@ -18,7 +20,9 @@ signals = [
async_load_resource_finished
]
properties = [
step
step,
was_child_cancelled,
was_parent_cancelled
]
functions = [
start_coroutine_without_parameter,
Expand All @@ -28,5 +32,6 @@ functions = [
start_coroutine_with_physics_frame,
start_coroutine_with_process_frame,
run_on_main_thread_from_background_thread,
async_load_resource
async_load_resource,
cancel_coroutine
]
2 changes: 2 additions & 0 deletions harness/tests/scripts/godot/tests/exception/ExceptionTest.gdj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.IdentityPointer,
godot.common.interop.ValuePointer,
kotlin.Any
]
signals = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.IdentityPointer,
godot.common.interop.ValuePointer,
kotlin.Any
]
signals = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.IdentityPointer,
godot.common.interop.ValuePointer,
kotlin.Any
]
signals = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.IdentityPointer,
godot.common.interop.ValuePointer,
kotlin.Any
]
signals = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.IdentityPointer,
godot.common.interop.ValuePointer,
kotlin.Any
]
signals = [
Expand Down
2 changes: 2 additions & 0 deletions harness/tests/scripts/godot/tests/instance/NodeInstance.gdj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.IdentityPointer,
godot.common.interop.ValuePointer,
kotlin.Any
]
signals = [
Expand Down
2 changes: 2 additions & 0 deletions harness/tests/scripts/godot/tests/instance/ObjectInstance.gdj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ baseType = Object
supertypes = [
godot.Object,
godot.core.KtObject,
godot.common.interop.IdentityPointer,
godot.common.interop.ValuePointer,
kotlin.Any
]
signals = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.RefCounted,
godot.Object,
godot.core.KtObject,
godot.common.interop.IdentityPointer,
godot.common.interop.ValuePointer,
kotlin.Any
]
signals = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.IdentityPointer,
godot.common.interop.ValuePointer,
kotlin.Any
]
signals = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.IdentityPointer,
godot.common.interop.ValuePointer,
kotlin.Any
]
signals = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.IdentityPointer,
godot.common.interop.ValuePointer,
kotlin.Any
]
signals = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.IdentityPointer,
godot.common.interop.ValuePointer,
kotlin.Any
]
signals = [
Expand Down
2 changes: 2 additions & 0 deletions harness/tests/scripts/godot/tests/rpctests/RPCTests.gdj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.IdentityPointer,
godot.common.interop.ValuePointer,
kotlin.Any
]
signals = [
Expand Down
2 changes: 2 additions & 0 deletions harness/tests/scripts/godot/tests/signal/SignalTest.gdj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.IdentityPointer,
godot.common.interop.ValuePointer,
kotlin.Any
]
signals = [
Expand Down
2 changes: 2 additions & 0 deletions harness/tests/scripts/godot/tests/static/CallStaticTest.gdj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.IdentityPointer,
godot.common.interop.ValuePointer,
kotlin.Any
]
signals = [
Expand Down
2 changes: 2 additions & 0 deletions harness/tests/scripts/godot/tests/subpackage/OtherScript.gdj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ supertypes = [
godot.Node,
godot.Object,
godot.core.KtObject,
godot.common.interop.IdentityPointer,
godot.common.interop.ValuePointer,
kotlin.Any
]
signals = [
Expand Down
Loading
Loading