Tagged Questions
0
votes
0answers
62 views
Capturing keyboard events for a limited time
I'm trying to code a kind of simple video game where there are two kind of players:
Human Players: They enter an keyboard input
CPU Players: A random input is calculated
For Human Players there is a ...
55
votes
8answers
8k views
Are events only used for GUI programming?
Are events only used for GUI programming?
How do you handle in normal backend programming when something happens to this other thing?
0
votes
4answers
350 views
Callbacks without concurrency? [closed]
To sync on the terms I will first give my perspective on what a callback function in the simplest possible terms:
A callback function is a function that is executed as a response to a certain ...
1
vote
3answers
403 views
Use case for async/await?
Background
Most of the applications that I write are hour long sequential tests for electronic equipment. The equipment under test has a specification that is a state-machine that looks like...
Get ...
2
votes
1answer
110 views
What are the underlying patterns in systems allowing asynchronous operations?
Say I'm working with a system that allows async, nonblocking operations. If I queue up a set of those operations and specify their result buffer references:
nonblocking_write( message, write_buffer )...
2
votes
2answers
504 views
In an event-driven environment, how should a “cancel” function abort all further events?
In my iOS app, things are mostly driven by events.
The user presses a button
The app listens for an external device to be connected to the iOS device
Once the device is detected (is connected), an ...