Async as define (#17542)

* Atomization

* changelog

* this file wasn't supposed to be included here

---------

Co-authored-by: FluffyGhost <FluffyGhost>
This commit is contained in:
Fluffy
2023-10-12 21:19:42 +00:00
committed by GitHub
co-authored by FluffyGhost <FluffyGhost>
parent 868fde6316
commit 5cb7c8f38e
4 changed files with 63 additions and 6 deletions
+2 -4
View File
@@ -290,16 +290,14 @@
if(!C.signal_enabled)
return NONE
var/proctype = C.signal_procs[src][sigtype]
arguments = list(C, proctype) + arguments
return NONE | INVOKE_ASYNC(arglist(arguments))
return NONE | call(C, proctype)(arglist(arguments))
. = NONE
for(var/I in target)
var/datum/C = I
if(!C.signal_enabled)
continue
var/proctype = C.signal_procs[src][sigtype]
arguments = list(C, proctype) + arguments
. |= INVOKE_ASYNC(arglist(arguments))
. |= call(C, proctype)(arglist(arguments))
// The type arg is casted so initial works, you shouldn't be passing a real instance into this
/**