method

then

then(&block)
public

Returns a new +ActiveRecord::Promise+ that will apply the passed block when the value is accessed:

Post.async_pick(:title).then { |title| title.upcase }.value
# => "POST TITLE"