Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Usually you would just call your functions hibernate() and terminate(). That way you can call hibernate() on State<Running> but not on State<Terminated> or State<Hibernate>.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: