implemented int and promise based timeout
Merge pull request #8 from nexus-uw/feature/timeout

implemented int and promise based timeout