> There is no need for special hook for running something on
> startup. That hook can be run directly before calling web.run
Having both hooks can come handy in some setups. For example: you may want to hang the same function on both hooks, or you may be constructing a library which needs to be able to do some work (migrate the database, establish a lock on the filesystem, establish an app-wide singleton) on startup and you want to provide a clean, plug-n-play interface.
> There is no need for special hook for running something on
> startup. That hook can be run directly before calling web.run
Having both hooks can come handy in some setups. For example: you may want to hang the same function on both hooks, or you may be constructing a library which needs to be able to do some work (migrate the database, establish a lock on the filesystem, establish an app-wide singleton) on startup and you want to provide a clean, plug-n-play interface.