3 ms·
write a function whose sig is like "boolean isOn()". call it. if it returns true, the computer is on. if it returns false, the computer is also on. done. ship i
by syngrog66 5y ago
write a function whose sig is like "boolean isOn()". call it. if it returns true, the computer is on. if it returns false, the computer is also on. done. ship it!
add a // TODO in v2: handle case if it never returns, or the process crashes, or caller times out waiting