improve Promise.tryAwait by converting to match statement
improve Promise.tryAwait by converting to match statement

- also use type FiniteDuration due to a previous change to
  Deadline’s type signature

martijnhoekstra/scala,felixmulder/scala,scala/scala,jvican/scala,jvican/scala,scala/scala,felixmulder/scala,shimib/scala,lrytz/scala,felixmulder/scala,lrytz/scala,slothspot/scala,lrytz/scala,martijnhoekstra/scala,martijnhoekstra/scala,scala/scala,shimib/scala,slothspot/scala,jvican/scala,felixmulder/scala,slothspot/scala,slothspot/scala,shimib/scala,slothspot/scala,martijnhoekstra/scala,slothspot/scala,martijnhoekstra/scala,shimib/scala,scala/scala,jvican/scala,jvican/scala,lrytz/scala,scala/scala,felixmulder/scala,felixmulder/scala,jvican/scala,slothspot/scala,shimib/scala,lrytz/scala,shimib/scala,felixmulder/scala,jvican/scala,scala/scala,martijnhoekstra/scala,lrytz/scala