Window.hasmessages

From codeTank

Jump to: navigation, search

Contents

Description

window.hasmessages is used to determine if any messages are pending inside the message queue. If messages are pending, it is a good idea to call window.pumpmessages in order to pump the messages out of the queue, and to the appropriate event handlers.

window.hasmessages will return immediately, and will not wait around for messages to happen. This is in contrast to window.pumpmessages, which will wait around for a message if none exist.

Arguments

No arguments.

Returns

window.hasmessages will return either true or false immediately, without blocking.

Example

sh: highlight: command not found

You need to specify a language like this: <source lang="html">...</source>

Supported languages for syntax highlighting:

(error loading support language list)

See Also

Personal tools