Sha256: 03dfcae2880a590e9cb24cbafe871afa93512dba2a2473c2b060acbfbff91b24
Contents?: true
Size: 485 Bytes
Versions: 38
Compression:
Stored size: 485 Bytes
Contents
# frozen_string_literal: true module AnyCable module Rails module Middlewares # Executor runs Rails executor for each call # See https://guides.rubyonrails.org/v5.2.0/threading_and_code_execution.html#framework-behavior class Executor < AnyCable::Middleware attr_reader :executor def initialize(executor) @executor = executor end def call(*) executor.wrap { yield } end end end end end
Version data entries
38 entries across 38 versions & 1 rubygems