nomi-san / true-autoit-multi-threading

:rainbow: Yep, multi-threading in AutoIt.
MIT License
58 stars 8 forks source link

How to Terminate a Thread by ID And ThreadExists? #2

Closed Drmon1269 closed 2 years ago

Drmon1269 commented 2 years ago

How about to Kill thread by ID?

nomi-san commented 2 years ago

This feature is not implemented to avoid memory leaks (in AutoIt interpreter). You should use Exit statement to (safe) exit immediately in a sub-thread.

func task($l)
    if not $l.ready then Exit
    ; do something
endfunc