Position of invalidateLater in an observer

Does the position of invalidateLater inside an observer matter? That is, is there a difference between this:

observe({
  invalidateLater(100)
  compute_long_operation()
})

and this:

observe({
  compute_long_operation()
  invalidateLater(100)
})

In other words, is the time to invalidation computed when invalidateLater is called or at the end of the observer expression?

I got my answer here: r - Position of invalidateLater in an observer - Stack Overflow. Time to invalidation is computed when invalidateLater is called. Problem solved.