In contrast, being able to assign the long-running operation to a background thread allows the foreground thread to remain active throughout the operation.

  • 比较而言,如果能够将长时间运行的操作分配给某个后台线程,就可以允许前台线程在整个操作期间保持活动状态。
目录 查词历史