Changed set_completed to reuse the current ifuture for parameter to completed
Changed ToFuture and Then to use packaged_task