Make SemiFuture::via throw on nullptr executor.
authorLee Howes <lwh@fb.com>
Sat, 4 Nov 2017 02:51:04 +0000 (19:51 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Sat, 4 Nov 2017 02:53:20 +0000 (19:53 -0700)
commit36ae3c3e9403dcef4677834bc920a70e15ddcbab
tree0a131f4d6d03328e9b5c98977eba369ac15731fd
parent2e1b273c3ea45d6a7ca78d5d927f202f3aeb9b87
Make SemiFuture::via throw on nullptr executor.

Summary: Make SemiFuture throw if no executor provided to via because in that situation the deferred work will never run.

Reviewed By: yfeldblum

Differential Revision: D6233233

fbshipit-source-id: 43b642c46cc0be80b1f13c03bdaf20b8038acec2
folly/futures/Future-inl.h
folly/futures/FutureException.cpp
folly/futures/FutureException.h
folly/futures/test/SemiFutureTest.cpp