5.9:Timer Based Messaging

時限メッセージ

Timers allow you to schedule events to happen in the future. Use timers for updating the display at regular intervals, processing data in chunks, playing animations, displaying status bars, or anywhere where you need to schedule events. Messages can be scheduled with millisecond precision and fire many times a second to create an animation, or can be scheduled to arrive hours later. When you schedule an event to be delivered in the future, Revolution continues to respond to user events as normal. This makes timer based messaging ideal where you want your user interface to remain responsive while doing data processing or updating the display.

タイマーを使うと、未来に起きるイヴェントを事前に決めておくことができます。一定の時間で表示を更新させたり、チャンク内のデータを処理したり、アニメーションを表示させたり、ステイタス・バーを表示させたり等々、事前にイヴェントを組み込んでおくにはタイマーを使えばいいのです。メッセージは千分の一秒単位の正確さでスケジュールでき、アニメーションを形作るために一秒間に何度でも開始でき、或いはまた何時間も後にメッセージを発生させることもできます。将来実行されるイヴェントをスケジュールしても、ユーザー・イヴェントに対するレヴォルーションの振る舞い方には影響を与えません。その為、時限メッセージ形式は、データ処理や表示の変更中であっても、快適な操作環境を損なわない理想的なユーザー・インターフェイスとなるのです。