Adding timeout to http request (sync and async)

How is this method used? I ask because value could be negative.