Runs the block with a timeout. If the block takes longer than ticks, it will be cancelled.
The result of the block, or null if it timed out.
The timeout duration in ticks.
The block to execute.