core: allow changing the priority at runtime

~~Untested.~~ RFC.

Closes #198.
(Insofar, I'd also prefer `!= -1`.)