错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Handling Events

  • Afzaal Ahmad Zeeshan

摘要

Events happen all the time. A program handles events that are happening within a process or a thread but also the events that are beyond its control or scope—network events, CPU events, user input events, timers, garbage collection, and much more. While you cannot handle all the events—errors in an underlying native library, or when system goes out of memory—you do receive notifications, and your program can use this information to make an informed decision.