Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.

Implement context.getRemainingTimeInMillis #13

Merged
merged 5 commits into from
Jul 16, 2018

Conversation

maxholman
Copy link
Contributor

@maxholman maxholman commented Jul 13, 2018

This PR implements the missing context method context.getRemainingTimeInMillis which returns the number of milliseconds remaining before the function will exit with a timeout (see docs) plus the relevant tests.

It uses the same essential logic as seen in serverless-offline

I have also specified a node version in circle.yml as yarn is no longer supported for node < 4.8.0 and tests were failing. See related yarnpkg issue

@ajmath
Copy link
Owner

ajmath commented Jul 16, 2018

Nice work. Thanks for the PR

@ajmath ajmath merged commit 7ac3c2a into ajmath:master Jul 16, 2018
@ajmath
Copy link
Owner

ajmath commented Jul 16, 2018

Published in v0.3.4

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants