Sha256: fcf438e038859367388ef441f362c67f15c385ace71ee90939a6d2e7ecbd51dc

Contents?: true

Size: 1.06 KB

Versions: 22

Compression:

Stored size: 1.06 KB

Contents

module Steep
  module Server
    class BaseWorker
      interface _Queue[A]
        def pop: () -> A?

        def <<: (A) -> A

        def close: () -> void
      end

      module LSP = LanguageServer::Protocol

      @skip_jobs_after_shutdown: bool

      @skip_job: bool

      @shutdown: bool

      attr_reader project: Project

      attr_reader reader: LanguageServer::Protocol::Transport::Io::Reader

      attr_reader writer: LanguageServer::Protocol::Transport::Io::Writer

      attr_reader queue: _Queue[untyped]

      class ShutdownJob
        attr_reader id: String

        def initialize: (id: String) -> void
      end

      def initialize: (project: Project, reader: LanguageServer::Protocol::Transport::Io::Reader, writer: LanguageServer::Protocol::Transport::Io::Writer) -> void

      def skip_jobs_after_shutdown!: (?bool flag) -> void

      def skip_jobs_after_shutdown?: () -> bool

      def skip_job?: () -> bool

      def handle_request: (untyped request) -> void

      def handle_job: (untyped job) -> void

      def run: () -> void
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
steep-1.4.0.dev.4 sig/steep/server/base_worker.rbs
steep-1.4.0.dev.3 sig/steep/server/base_worker.rbs