# How to work with another event\_loop?

**URL:** <https://discourse.piston.rs/t/how-to-work-with-another-event-loop/178>\
**Category:** Uncategorized\
**Created:** [May 9, 2021, 6:00pm UTC](https://discourse.piston.rs/t/how-to-work-with-another-event-loop/178 "2021-05-09T18:00:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jiyinyiyong](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.piston.rs/jiyinyiyong/32/46_2.png) [@jiyinyiyong](https://discourse.piston.rs/u/jiyinyiyong)\
**Post date:** [May 9, 2021, 6:00pm UTC](https://discourse.piston.rs/t/how-to-work-with-another-event-loop/178/1 "2021-05-09T18:00:38Z")

</div>

the API wrapped window into an iterator and uses a lazy mode to control it. In my program I also have a loop of `notify` to watch file and do some stuffs. I think it might be impossible to use iterator here so I turned off lazy but turned out it’s still strange(works but very strange, blinking with my thread sleep calls…).

what’s the correct way of using piston with another event loop?
