3 ms·
Assuming func() doesn’t have side effects, sure. But if the point was to gate func() to only run before deadline this doesn’t really help.
by Psyonic 5y ago
Assuming func() doesn’t have side effects, sure. But if the point was to gate func() to only run before deadline this doesn’t really help.
- jeffbee 5y agoYeah but that doesn’t have anything to do with this API. If you want to use it that way, obviously the reasoning is defective. This API is to determine if something that happened at a given instant is definitely in the past. That’s it!