swift-aws-lambda-runtime icon indicating copy to clipboard operation
swift-aws-lambda-runtime copied to clipboard

Methods which never return (like run) should be marked as `-> Never`

Open helje5 opened this issue 4 years ago • 2 comments

As per PR #150, which needs to be fixed in more places.

Note that this is API semver major, so for 2.x.

helje5 avatar Jul 31 '20 14:07 helje5

Of course you should be very sure whether you want the Never behaviour, but if you do - as documented -, it should return Never.

Why might you not want Never? I don't know, maybe because some Lambda's would want to switch the bootstrap for some crazy reason?

helje5 avatar Jul 31 '20 15:07 helje5

lets do this with other breaking API changes for 1.0

tomerd avatar Jul 31 '20 18:07 tomerd