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

I suppose you're doing what might be a resource intensive task and want to be sure you don't kill the battery.

Granted I get folks might feel a rando website that is resource intensive would be horrific, but maybe we're talking about some specific web app / use case.



Even so, I think battery API is not the proper way to do it. Some sort of interrupt command (like UNIX has) may be better.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: