You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: environment.rb
    path of file: ./repos/pakyow/core/lib/pakyow
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require "core/async"

require "pakyow/support/core_refinements/array/ensurable"

require "pakyow/support/hookable"
require "pakyow/support/configurable"
require "pakyow/support/class_state"
require "pakyow/support/deep_dup"
require "pakyow/support/deep_freeze"
require "pakyow/support/definable"
require "pakyow/support/handleable"
require "pak
    
    def boot(env: nil)
      unless booted?
        setup(env: env)

        performing :boot do
          # Set the environment as booted ahead of telling each app that it is booted. This allows an
          # app's after boot hook to access the booted app through `Pakyow.app`.
          #
          @__booted = true

          # Now tell each app that it has been booted.
          #
          @apps.each(&:booted)
        end
      end