Sha256: a0c19337c8619d8267b4a66f0dd7c152c0d4f009a56b278a74f9248865de1360

Contents?: true

Size: 528 Bytes

Versions: 21

Compression:

Stored size: 528 Bytes

Contents

#
# !SLIDE :capture_code_output true
# Subprocess service with continuation

require 'example_helper'
begin
  Email.asir.transport = t =
    ASIR::Transport::Subprocess.new(:one_way => true)
  pr(Email.asir.send_email(:pdf_invoice,
                             :to => "user@email.com",
                             :customer => @customer) { | resp |
     pr [ :in_block, resp.result ] })
end

# !SLIDE END
# EXPECT: : client process
# EXPECT: : Email.send_mail :pdf_invoice
# EXPECT: : pr: nil
# EXPECT: : pr: [:in_block, :ok]

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
asir-1.2.1 example/ex23.rb
asir-1.2.0 example/ex23.rb
asir-1.1.12 example/ex23.rb
asir-1.1.11 example/ex23.rb
asir-1.1.10 example/ex23.rb
asir-1.1.9 example/ex23.rb
asir-1.1.8 example/ex23.rb
asir-1.1.7 example/ex23.rb
asir-1.1.6 example/ex23.rb
asir-1.1.5 example/ex23.rb
asir-1.1.4 example/ex23.rb
asir-1.1.3 example/ex23.rb
asir-1.1.2 example/ex23.rb
asir-1.1.1 example/ex23.rb
asir-1.1.0 example/ex23.rb
asir-1.0.8 example/ex23.rb
asir-1.0.7 example/ex23.rb
asir-1.0.6 example/ex23.rb
asir-1.0.5 example/ex23.rb
asir-1.0.4 example/ex23.rb