lib/kernel/sync.rb in async-2.19.0 vs lib/kernel/sync.rb in async-2.20.0

- old
+ new

@@ -12,10 +12,10 @@ # Run the given block of code synchronously, but within a reactor if not already in one. # # @yields {|task| ...} The block that will execute asynchronously. # @parameter task [Async::Task] The task that is executing the given block. # - # @public Since `stable-v1`. + # @public Since *Async v1*. # @asynchronous Will block until given block completes executing. def Sync(annotation: nil, &block) if task = ::Async::Task.current? if annotation task.annotate(annotation) {yield task}