Revert "Add sleeping thread func"

This reverts commit 7ee9a1c3a5940b594e9857ef9b15d2953ab3aaa5.
Cancel commit