Skip to content

Commit

Permalink
feat(coroutine): Add LambdaCallable::onCancel to cancel coroutine whe…
Browse files Browse the repository at this point in the history
…n callable is cancelled
  • Loading branch information
piiertho committed Oct 18, 2024
1 parent 117b671 commit 94b4115
Show file tree
Hide file tree
Showing 56 changed files with 637 additions and 345 deletions.
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

0 comments on commit 94b4115

Please sign in to comment.