Resolve with null on timeout. Lint.
Add unit tests.