Jump to content

Feature Request: Asynchronous Operations & Event Handlers


drego
 Share

Recommended Posts

It's been requested in the past to have multithreading to which the response was "It would take too much redesigning of Autoit" but what about Async? Multithreading and Async are two different things. This way we could put tasks in the background without having to fork processes. Right? Also better event handling would be nice rather than throwing everything in a while loop we could have some functionality like javascript which seems to be far more responsive and reliable as the more you add to your while loop the less change there is of your "event" getting caught for some reason (At least in my experience).

Link to comment
Share on other sites

There is always GuiEventMode.

Any chance you could explain how they are different?

To me, they are by definition, the exact same thing.

 

The difference is that an async operation happens on the same thread. Lookup Javascript's async (Which is not multithreading) or even better C# async/await vs thread. Also, I think you were referring to OnEvent? OnEvent will help if it does what it says it does and continues executing the program loop while executing the event function. Thanks because I didn't know that existed but yeah, async is generally not the same as what you would consider multithreading and when asked about multithreading I'm sure that's what the Autoit devs are thinking of, not async.

Since there's already this OnEvent for GUI elements it wouldn't be a stretch to add async/await functionality beyond just executing a function when a GUI event happens.

Link to comment
Share on other sites

Multithreading is different parts of a program running, typcially called threads.
 
Asynchronous programming uses threads to kick off a piece of code.   So asynchronous programming relies on multithreading to work.

 

 

https://social.msdn.microsoft.com/Forums/en-US/3de8670c-49ca-400f-a1dc-ce3a3619357d/difference-between-multithreading-and-asynchronous-programming?forum=csharplanguage

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...