[fpc-devel] Coding Questions
jonas.maebe at elis.ugent.be
Sat Dec 3 20:03:36 CET 2005
On 03 Dec 2005, at 19:44, VisionForce wrote:
> the readkey() function freezes the whole app until you press a key;
> this is async.
No, that's synchronous. Asynchronous means that you ask for something
to be performed and that control is immediately returned to you,
while "something" is performed in the asynchronously with the rest of
the flow of your program (instead of that the flow of your program is
synchronised with the completion of that operation).
That said, there's always the keypressed function if you want to
check first whether a key has been pressed before calling readkey.
More information about the fpc-devel