Skip to content
This repository has been archived by the owner on Apr 19, 2020. It is now read-only.

add delay in loop makes watcher use 0% CPU! #7

Open
raveneer opened this issue Nov 3, 2019 · 0 comments
Open

add delay in loop makes watcher use 0% CPU! #7

raveneer opened this issue Nov 3, 2019 · 0 comments

Comments

@raveneer
Copy link

raveneer commented Nov 3, 2019

        // 非同期で監視を続けるために無限ループに入る
        while (true)
        {
            Thread.Sleep(1000);
        }

this makes cpu use 0%!

and it still works well.

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant