/**
 * Copyright 2018 Twitter, Inc.
 * Licensed under the Apache License, Version 2.0
 * http://www.apache.org/licenses/LICENSE-2.0
 */ import bluebird = require ( "bluebird" ) ; export function timeoutPromise < T > ( promise , timeout , reason ? ) { return bluebird . resolve ( promise ) . timeout ( timeout , reason ) as any ; }