EliAndrewC / sideboard

BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Caller and GenericCaller should have delay option #81

Closed EliAndrewC closed 8 years ago

EliAndrewC commented 9 years ago

The Caller and GenericCaller classes have both a defer method and a delayed method. The latter makes use of a DaemonTask which periodically checks whether or not it's time to execute a task.

In practice we've found that we'll often instantiate callers with no intention of ever using the delayed method, which means we're spinning up an extra thread for nothing. It would be better to have a keyword argument on instantiation which says whether delayed will be a supported method. If not then calling it will raise an exception.

EliAndrewC commented 8 years ago

Moved to https://github.com/magfest/sideboard/issues/28