Putting an Electron to Sleep until a condition is met

Posts already referred: