Sha256: 8c504023232e3160b6a5c29f867a1e1a5aa77e0bc99e2618fc083bb93727dec1

Contents?: true

Size: 332 Bytes

Versions: 9

Compression:

Stored size: 332 Bytes

Contents

module Dynflow
  module Action::CancellablePolling
    include Action::Polling
    Cancel = Algebrick.atom

    def run(event = nil)
      if Cancel === event
        self.external_task = cancel_external_task
      else
        super event
      end
    end

    def cancel_external_task
      NotImplementedError
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
dynflow-0.6.2 lib/dynflow/action/cancellable_polling.rb
dynflow-0.6.1 lib/dynflow/action/cancellable_polling.rb
dynflow-0.6.0 lib/dynflow/action/cancellable_polling.rb
dynflow-0.5.1 lib/dynflow/action/cancellable_polling.rb
dynflow-0.5.0 lib/dynflow/action/cancellable_polling.rb
dynflow-0.4.1 lib/dynflow/action/cancellable_polling.rb
dynflow-0.4.0 lib/dynflow/action/cancellable_polling.rb
dynflow-0.3.0 lib/dynflow/action/cancellable_polling.rb
dynflow-0.2.0 lib/dynflow/action/cancellable_polling.rb