[Wish] Cleaner Concurrency and Coroutines

Discuss the future of the AutoHotkey language
Posts: 610
Joined: 13 Aug 2016, 21:04
GitHub: iseahound

[Wish] Cleaner Concurrency and Coroutines

27 Aug 2018, 03:22

Most of my code looks something like this:

Code: Select all

               convertImage := ObjBindMethod(Vis2.ux.process, "convertImage", obj)
               SetTimer, % convertImage, % -Abs(obj.service.textPreview)
which is alright, but something similar to Javascript's await/async or Go's go/chan would be much easier to work with than SetTimer and a global variable for synchronizing outputs. Importantly it would also create the foundation for integrating multithreading/parallelism upon the current framework of thread-switching/concurrency. I see AutoHotkey v2 has arrow functions and closures now, so better concurrency support would help modernize it!

Return to “AutoHotkey v2 Development”

Who is online

Users browsing this forum: No registered users and 3 guests