| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 
 | <!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
  File: CHANGELOG
  
    — Concurrent Ruby
  
</title>
  <link rel="stylesheet" href="css/style.css" type="text/css" />
  <link rel="stylesheet" href="css/common.css" type="text/css" />
<script type="text/javascript">
  pathId = "CHANGELOG";
  relpath = '';
</script>
  <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
  <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
  </head>
  <body>
    <div class="nav_wrap">
      <iframe id="nav" src="file_list.html?1"></iframe>
      <div id="resizer"></div>
    </div>
    <div id="main" tabindex="-1">
      <div id="header">
        <div id="menu">
  
    <a href="_index.html">Index</a> » 
    <span class="title">File: CHANGELOG</span>
  
</div>
        <div id="search">
  
    <a class="full_list_link" id="class_list_link"
        href="class_list.html">
        <svg width="24" height="24">
          <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
          <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
          <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
        </svg>
    </a>
  
</div>
        <div class="clear"></div>
      </div>
      <div id="content"><div id='filecontents'><h2>Current</h2>
<h2>Release v1.1.6, edge v0.6.0 (10 Feb 2020)</h2>
<p>concurrent-ruby:</p>
<ul>
<li>Concurrent.disable_at_exit_handlers! is no longer needed and was deprecated.</li>
<li>AbstractExecutorService#auto_terminate= was deprecated and has no effect. 
Set :auto_terminate option instead when executor is initialized.</li>
</ul>
<h2>Release v1.1.6.pre1, edge v0.6.0.pre1 (26 Jan 2020)</h2>
<p>concurrent-ruby:</p>
<ul>
<li>Allow to name executors, the name is also used to name their threads (#828)</li>
<li>Implement #dup and #clone for structs (#838)</li>
<li>Safer finalizers for thread local variables (#821)</li>
<li>Documentation fixes</li>
<li>Use Ruby's Etc.nprocessors if available (#814)</li>
<li>Fix directory structure not to mess with packaging tools (#812)</li>
<li>Fix termination of pools on JRuby (#840)</li>
</ul>
<p>concurrent-ruby-edge:</p>
<ul>
<li>Add WrappingExecutor (#830)</li>
</ul>
<h2>Release v1.1.5, edge v0.5.0 (10 Mar 2019)</h2>
<p>concurrent-ruby:</p>
<ul>
<li>fix potential leak of context on JRuby and Java 7</li>
</ul>
<p>concurrent-ruby-edge:</p>
<ul>
<li>Add finalized Concurrent::Cancellation</li>
<li>Add finalized Concurrent::Throttle</li>
<li>Add finalized Concurrent::Promises::Channel</li>
<li>Add new Concurrent::ErlangActor</li>
</ul>
<h2>Release v1.1.4 (14 Dec 2018)</h2>
<ul>
<li>(#780) Remove java_alias of 'submit' method of Runnable to let executor service work on java 11</li>
<li>(#776) Fix NameError on defining a struct with a name which is already taken in an ancestor</li>
</ul>
<h2>Release v1.1.3 (7 Nov 2018)</h2>
<ul>
<li>(#775) fix partial require of the gem (although not officially supported)</li>
</ul>
<h2>Release v1.1.2 (6 Nov 2018)</h2>
<ul>
<li>(#773) more defensive 1.9.3 support</li>
</ul>
<h2>Release v1.1.1, edge v0.4.1 (1 Nov 2018)</h2>
<ul>
<li>(#768) add support for 1.9.3 back </li>
</ul>
<h2>Release v1.1.0, edge v0.4.0 (31 OCt 2018) (yanked)</h2>
<ul>
<li>(#768) yanked because of issues with removed 1.9.3 support </li>
</ul>
<h2>Release v1.1.0.pre2, edge v0.4.0.pre2 (18 Sep 2018)</h2>
<p>concurrent-ruby:</p>
<ul>
<li>fixed documentation and README links</li>
<li>fix Set for TruffleRuby and Rubinius</li>
<li>use properly supported TruffleRuby APIs</li>
</ul>
<p>concurrent-ruby-edge:</p>
<ul>
<li>add Promises.zip_futures_over_on</li>
</ul>
<h2>Release v1.1.0.pre1, edge v0.4.0.pre1 (15 Aug 2018)</h2>
<p>concurrent-ruby:</p>
<ul>
<li>requires at least Ruby 2.0</li>
<li><a href="http://ruby-concurrency.github.io/concurrent-ruby/1.1.0/Concurrent/Promises.html">Promises</a>
are moved from <code>concurrent-ruby-edge</code> to <code>concurrent-ruby</code></li>
<li>Add support for TruffleRuby
<ul>
<li>(#734) Fix Array/Hash/Set construction broken on TruffleRuby</li>
<li>AtomicReference fixed<br></li>
</ul></li>
<li>CI stabilization</li>
<li>remove sharp dependency edge -> core</li>
<li>remove warnings</li>
<li>documentation updates</li>
<li>Exchanger is no longer documented as edge since it was already available in 
<code>concurrent-ruby</code></li>
<li>(#644) Fix Map#each and #each_pair not returning enumerator outside of MRI</li>
<li>(#659) Edge promises fail during error handling</li>
<li>(#741) Raise on recursive Delay#value call</li>
<li>(#727) #717 fix global IO executor on JRuby</li>
<li>(#740) Drop support for CRuby 1.9, JRuby 1.7, Rubinius.</li>
<li>(#737) Move AtomicMarkableReference out of Edge</li>
<li>(#708) Prefer platform specific memory barriers </li>
<li>(#735) Fix wrong expected exception in channel spec assertion</li>
<li>(#729) Allow executor option in <code>Promise#then</code></li>
<li>(#725) fix timeout check to use timeout_interval</li>
<li>(#719) update engine detection</li>
<li>(#660) Add specs for Promise#zip/Promise.zip ordering</li>
<li>(#654) Promise.zip execution changes</li>
<li>(#666) Add thread safe set implementation</li>
<li>(#651) #699 #to_s, #inspect should not output negative object IDs.</li>
<li>(#685) Avoid RSpec warnings about raise_error</li>
<li>(#680) Avoid RSpec monkey patching, persist spec results locally, use RSpec
v3.7.0</li>
<li>(#665) Initialize the monitor for new subarrays on Rubinius</li>
<li>(#661) Fix error handling in edge promises</li>
</ul>
<p>concurrent-ruby-edge:</p>
<ul>
<li>(#659) Edge promises fail during error handling</li>
<li>Edge files clearly separated in <code>lib-edge</code></li>
<li>added ReInclude</li>
</ul>
<h2>Release v1.0.5, edge v0.3.1 (26 Feb 2017)</h2>
<p>concurrent-ruby:</p>
<ul>
<li>Documentation for Event and Semaphore</li>
<li>Use Unsafe#fullFence and #loadFence directly since the shortcuts were removed in JRuby</li>
<li>Do not depend on org.jruby.util.unsafe.UnsafeHolder</li>
</ul>
<p>concurrent-ruby-edge:</p>
<ul>
<li>(#620) Actors on Pool raise an error</li>
<li>(#624) Delayed promises did not interact correctly with flatting
<ul>
<li>Fix arguments yielded by callback methods</li>
</ul></li>
<li>Overridable default executor in promises factory methods</li>
<li>Asking actor to terminate will always resolve to <code>true</code></li>
</ul>
<h2>Release v1.0.4, edge v0.3.0 (27 Dec 2016)</h2>
<p>concurrent-ruby:</p>
<ul>
<li>Nothing</li>
</ul>
<p>concurrent-ruby-edge:</p>
<ul>
<li>New promises' API renamed, lots of improvements, edge bumped to 0.3.0
<ul>
<li><strong>Incompatible</strong> with previous 0.2.3 version</li>
<li>see <a href="https://github.com/ruby-concurrency/concurrent-ruby/pull/522">https://github.com/ruby-concurrency/concurrent-ruby/pull/522</a></li>
</ul></li>
</ul>
<h2>Release v1.0.3 (17 Dec 2016)</h2>
<ul>
<li>Trigger execution of flattened delayed futures</li>
<li>Avoid forking for processor_count if possible</li>
<li>Semaphore Mutex and JRuby parity</li>
<li>Adds Map#each as alias to Map#each_pair</li>
<li>Fix uninitialized instance variables</li>
<li>Make Fixnum, Bignum merger ready</li>
<li>Allows Promise#then to receive an executor</li>
<li>TimerSet now survives a fork</li>
<li>Reject promise on any exception</li>
<li>Allow ThreadLocalVar to be initialized with a block</li>
<li>Support Alpha with <code>Concurrent::processor_count</code></li>
<li>Fixes format-security error when compiling ruby_193_compatible.h</li>
<li>Concurrent::Atom#swap fixed: reraise the exceptions from block</li>
</ul>
<h2>Release v1.0.2 (2 May 2016)</h2>
<ul>
<li>Fix bug with <code>Concurrent::Map</code> MRI backend <code>#inspect</code> method</li>
<li>Fix bug with <code>Concurrent::Map</code> MRI backend using <code>Hash#value?</code></li>
<li>Improved documentation and examples</li>
<li>Minor updates to Edge</li>
</ul>
<h2>Release v1.0.1 (27 February 2016)</h2>
<ul>
<li>Fix "uninitialized constant Concurrent::ReentrantReadWriteLock" error.</li>
<li>Better handling of <code>autoload</code> vs. <code>require</code>.</li>
<li>Improved API for Edge <code>Future</code> zipping.</li>
<li>Fix reference leak in Edge <code>Future</code> constructor .</li>
<li>Fix bug which prevented thread pools from surviving a <code>fork</code>.</li>
<li>Fix bug in which <code>TimerTask</code> did not correctly specify all its dependencies.</li>
<li>Improved support for JRuby+Truffle</li>
<li>Improved error messages.</li>
<li>Improved documentation.</li>
<li>Updated README and CONTRIBUTING.</li>
</ul>
<h2>Release v1.0.0 (13 November 2015)</h2>
<ul>
<li>Rename <code>attr_volatile_with_cas</code> to <code>attr_atomic</code></li>
<li>Add <code>clear_each</code> to <code>LockFreeStack</code></li>
<li>Update <code>AtomicReference</code> documentation</li>
<li>Further updates and improvements to the synchronization layer.</li>
<li>Performance and memory usage performance with <code>Actor</code> logging.</li>
<li>Fixed <code>ThreadPoolExecutor</code> task count methods.</li>
<li>Improved <code>Async</code> performance for both short and long-lived objects.</li>
<li>Fixed bug in <code>LockFreeLinkedSet</code>.</li>
<li>Fixed bug in which <code>Agent#await</code> triggered a validation failure.</li>
<li>Further <code>Channel</code> updates.</li>
<li>Adopted a project Code of Conduct</li>
<li>Cleared interpreter warnings</li>
<li>Fixed bug in <code>ThreadPoolExecutor</code> task count methods</li>
<li>Fixed bug in 'LockFreeLinkedSet'</li>
<li>Improved Java extension loading</li>
<li>Handle Exception children in Edge::Future</li>
<li>Continued improvements to channel</li>
<li>Removed interpreter warnings.</li>
<li>Shared constants now in <code>lib/concurrent/constants.rb</code></li>
<li>Refactored many tests.</li>
<li>Improved synchronization layer/memory model documentation.</li>
<li>Bug fix in Edge <code>Future#flat</code></li>
<li>Brand new <code>Channel</code> implementation in Edge gem.</li>
<li>Simplification of <code>RubySingleThreadExecutor</code></li>
<li><code>Async</code> improvements
<ul>
<li>Each object uses its own <code>SingleThreadExecutor</code> instead of the global thread pool.</li>
<li>No longers supports executor injection</li>
<li>Much better documentation</li>
</ul></li>
<li><code>Atom</code> updates
<ul>
<li>No longer <code>Dereferenceable</code></li>
<li>Now <code>Observable</code></li>
<li>Added a <code>#reset</code> method</li>
</ul></li>
<li>Brand new <code>Agent</code> API and implementation. Now functionally equivalent to Clojure.</li>
<li>Continued improvements to the synchronization layer</li>
<li>Merged in the <code>thread_safe</code> gem
<ul>
<li><code>Concurrent::Array</code></li>
<li><code>Concurrent::Hash</code></li>
<li><code>Concurrent::Map</code> (formerly ThreadSafe::Cache)</li>
<li><code>Concurrent::Tuple</code></li>
</ul></li>
<li>Minor improvements to Concurrent::Map</li>
<li>Complete rewrite of <code>Exchanger</code></li>
<li>Removed all deprecated code (classes, methods, constants, etc.)</li>
<li>Updated Agent, MutexAtomic, and BufferedChannel to inherit from Synchronization::Object.</li>
<li>Many improved tests</li>
<li>Some internal reorganization</li>
</ul>
<h2>Release v0.9.1 (09 August 2015)</h2>
<ul>
<li>Fixed a Rubiniux bug in synchronization object</li>
<li>Fixed all interpreter warnings (except circular references)</li>
<li>Fixed require statements when requiring <code>Atom</code> alone</li>
<li>Significantly improved <code>ThreadLocalVar</code> on non-JRuby platforms</li>
<li>Fixed error handling in Edge <code>Concurrent.zip</code></li>
<li><code>AtomicFixnum</code> methods <code>#increment</code> and <code>#decrement</code> now support optional delta</li>
<li>New <code>AtomicFixnum#update</code> method</li>
<li>Minor optimizations in <code>ReadWriteLock</code></li>
<li>New <code>ReentrantReadWriteLock</code> class</li>
<li><code>ThreadLocalVar#bind</code> method is now public</li>
<li>Refactored many tests</li>
</ul>
<h2>Release v0.9.0 (10 July 2015)</h2>
<ul>
<li>Updated <code>AtomicReference</code>
<ul>
<li><code>AtomicReference#try_update</code> now simply returns instead of raising exception</li>
<li><code>AtomicReference#try_update!</code> was added to raise exceptions if an update
fails. Note: this is the same behavior as the old <code>try_update</code></li>
</ul></li>
<li>Pure Java implementations of
<ul>
<li><code>AtomicBoolean</code></li>
<li><code>AtomicFixnum</code></li>
<li><code>Semaphore</code></li>
</ul></li>
<li>Fixed bug when pruning Ruby thread pools</li>
<li>Fixed bug in time calculations within <code>ScheduledTask</code></li>
<li>Default <code>count</code> in <code>CountDownLatch</code> to 1</li>
<li>Use monotonic clock for all timers via <code>Concurrent.monotonic_time</code>
<ul>
<li>Use <code>Process.clock_gettime(Process::CLOCK_MONOTONIC)</code> when available</li>
<li>Fallback to <code>java.lang.System.nanoTime()</code> on unsupported JRuby versions</li>
<li>Pure Ruby implementation for everything else</li>
<li>Effects <code>Concurrent.timer</code>, <code>Concurrent.timeout</code>, <code>TimerSet</code>, <code>TimerTask</code>, and <code>ScheduledTask</code></li>
</ul></li>
<li>Deprecated all clock-time based timer scheduling
<ul>
<li>Only support scheduling by delay</li>
<li>Effects <code>Concurrent.timer</code>, <code>TimerSet</code>, and <code>ScheduledTask</code></li>
</ul></li>
<li>Added new <code>ReadWriteLock</code> class</li>
<li>Consistent <code>at_exit</code> behavior for Java and Ruby thread pools.</li>
<li>Added <code>at_exit</code> handler to Ruby thread pools (already in Java thread pools)
<ul>
<li>Ruby handler stores the object id and retrieves from <code>ObjectSpace</code></li>
<li>JRuby disables <code>ObjectSpace</code> by default so that handler stores the object reference</li>
</ul></li>
<li>Added a <code>:stop_on_exit</code> option to thread pools to enable/disable <code>at_exit</code> handler</li>
<li>Updated thread pool docs to better explain shutting down thread pools</li>
<li>Simpler <code>:executor</code> option syntax for all abstractions which support this option</li>
<li>Added <code>Executor#auto_terminate?</code> predicate method (for thread pools)</li>
<li>Added <code>at_exit</code> handler to <code>TimerSet</code></li>
<li>Simplified auto-termination of the global executors
<ul>
<li>Can now disable auto-termination of global executors</li>
<li>Added shutdown/kill/wait_for_termination variants for global executors</li>
</ul></li>
<li>Can now disable auto-termination for <em>all</em> executors (the nuclear option)</li>
<li>Simplified auto-termination of the global executors</li>
<li>Deprecated terms "task pool" and "operation pool"
<ul>
<li>New terms are "io executor" and "fast executor"</li>
<li>New functions added with new names</li>
<li>Deprecation warnings added to functions referencing old names</li>
</ul></li>
<li>Moved all thread pool related functions from <code>Concurrent::Configuration</code> to <code>Concurrent</code>
<ul>
<li>Old functions still exist with deprecation warnings</li>
<li>New functions have updated names as appropriate</li>
</ul></li>
<li>All high-level abstractions default to the "io executor"</li>
<li>Fixed bug in <code>Actor</code> causing it to prematurely warm global thread pools on gem load
<ul>
<li>This also fixed a <code>RejectedExecutionError</code> bug when running with minitest/autorun via JRuby</li>
</ul></li>
<li>Moved global logger up to the <code>Concurrent</code> namespace and refactored the code</li>
<li>Optimized the performance of <code>Delay</code>
<ul>
<li>Fixed a bug in which no executor option on construction caused block execution on a global thread pool</li>
</ul></li>
<li>Numerous improvements and bug fixes to <code>TimerSet</code></li>
<li>Fixed deadlock of <code>Future</code> when the handler raises Exception</li>
<li>Added shared specs for more classes</li>
<li>New concurrency abstractions including:
<ul>
<li><code>Atom</code></li>
<li><code>Maybe</code></li>
<li><code>ImmutableStruct</code></li>
<li><code>MutableStruct</code></li>
<li><code>SettableStruct</code></li>
</ul></li>
<li>Created an Edge gem for unstable abstractions including
<ul>
<li><code>Actor</code></li>
<li><code>Agent</code></li>
<li><code>Channel</code></li>
<li><code>Exchanger</code></li>
<li><code>LazyRegister</code></li>
<li><strong>new Future Framework</strong> <a href="http://ruby-concurrency.github.io/concurrent-ruby/Concurrent/Edge.html">http://ruby-concurrency.github.io/concurrent-ruby/Concurrent/Edge.html</a> - unified
implementation of Futures and Promises which combines Features of previous <code>Future</code>,
<code>Promise</code>, <code>IVar</code>, <code>Event</code>, <code>Probe</code>, <code>dataflow</code>, <code>Delay</code>, <code>TimerTask</code> into single framework. It uses extensively
new synchronization layer to make all the paths <strong>lock-free</strong> with exception of blocking threads on <code>#wait</code>.
It offers better performance and does not block threads when not required.</li>
</ul></li>
<li>Actor framework changes:
<ul>
<li>fixed reset loop in Pool</li>
<li>Pool can use any actor as a worker, abstract worker class is no longer needed.</li>
<li>Actor events not have format <code>[:event_name, *payload]</code> instead of just the Symbol.</li>
<li>Actor now uses new Future/Promise Framework instead of <code>IVar</code> for better interoperability</li>
<li>Behaviour definition array was simplified to <code>[BehaviourClass1, [BehaviourClass2, *initialization_args]]</code></li>
<li>Linking behavior responds to :linked message by returning array of linked actors</li>
<li>Supervised behavior is removed in favour of just Linking</li>
<li>RestartingContext is supervised by default now, <code>supervise: true</code> is not required any more</li>
<li>Events can be private and public, so far only difference is that Linking will
pass to linked actors only public messages. Adding private :restarting and
:resetting events which are send before the actor restarts or resets allowing
to add callbacks to cleanup current child actors.</li>
<li>Print also object_id in Reference to_s</li>
<li>Add AbstractContext#default_executor to be able to override executor class wide</li>
<li>Add basic IO example</li>
<li>Documentation somewhat improved</li>
<li>All messages should have same priority. It's now possible to send <code>actor << job1 << job2 << :terminate!</code> and
be sure that both jobs are processed first.</li>
</ul></li>
<li>Refactored <code>Channel</code> to use newer synchronization objects</li>
<li>Added <code>#reset</code> and <code>#cancel</code> methods to <code>TimerSet</code></li>
<li>Added <code>#cancel</code> method to <code>Future</code> and <code>ScheduledTask</code></li>
<li>Refactored <code>TimerSet</code> to use <code>ScheduledTask</code></li>
<li>Updated <code>Async</code> with a factory that initializes the object</li>
<li>Deprecated <code>Concurrent.timer</code> and <code>Concurrent.timeout</code></li>
<li>Reduced max threads on pure-Ruby thread pools (abends around 14751 threads)</li>
<li>Moved many private/internal classes/modules into "namespace" modules</li>
<li>Removed brute-force killing of threads in tests</li>
<li>Fixed a thread pool bug when the operating system cannot allocate more threads</li>
</ul>
<h2>Release v0.8.0 (25 January 2015)</h2>
<ul>
<li>C extension for MRI have been extracted into the <code>concurrent-ruby-ext</code> companion gem.
Please see the README for more detail.</li>
<li>Better variable isolation in <code>Promise</code> and <code>Future</code> via an <code>:args</code> option</li>
<li>Continued to update intermittently failing tests</li>
</ul>
<h2>Release v0.7.2 (24 January 2015)</h2>
<ul>
<li>New <code>Semaphore</code> class based on <a href="http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/Semaphore.html">java.util.concurrent.Semaphore</a></li>
<li>New <code>Promise.all?</code> and <code>Promise.any?</code> class methods</li>
<li>Renamed <code>:overflow_policy</code> on thread pools to <code>:fallback_policy</code></li>
<li>Thread pools still accept the <code>:overflow_policy</code> option but display a warning</li>
<li>Thread pools now implement <code>fallback_policy</code> behavior when not running (rather than universally rejecting tasks)</li>
<li>Fixed minor <code>set_deref_options</code> constructor bug in <code>Promise</code> class</li>
<li>Fixed minor <code>require</code> bug in <code>ThreadLocalVar</code> class</li>
<li>Fixed race condition bug in <code>TimerSet</code> class</li>
<li>Fixed race condition bug in <code>TimerSet</code> class</li>
<li>Fixed signal bug in <code>TimerSet#post</code> method</li>
<li>Numerous non-functional updates to clear warning when running in debug mode</li>
<li>Fixed more intermittently failing tests</li>
<li>Tests now run on new Travis build environment</li>
<li>Multiple documentation updates</li>
</ul>
<h2>Release v0.7.1 (4 December 2014)</h2>
<p>Please see the <a href="https://github.com/ruby-concurrency/concurrent-ruby/issues/142">roadmap</a> for more information on the next planned release.</p>
<ul>
<li>Added <code>flat_map</code> method to <code>Promise</code></li>
<li>Added <code>zip</code> method to <code>Promise</code></li>
<li>Fixed bug with logging in <code>Actor</code></li>
<li>Improvements to <code>Promise</code> tests</li>
<li>Removed actor-experimental warning</li>
<li>Added an <code>IndirectImmediateExecutor</code> class</li>
<li>Allow disabling auto termination of global executors</li>
<li>Fix thread leaking in <code>ThreadLocalVar</code> (uses <code>Ref</code> gem on non-JRuby systems)</li>
<li>Fix thread leaking when pruning pure-Ruby thread pools</li>
<li>Prevent <code>Actor</code> from using an <code>ImmediateExecutor</code> (causes deadlock)</li>
<li>Added missing synchronizations to <code>TimerSet</code></li>
<li>Fixed bug with return value of <code>Concurrent::Actor::Utils::Pool#ask</code></li>
<li>Fixed timing bug in <code>TimerTask</code></li>
<li>Fixed bug when creating a <code>JavaThreadPoolExecutor</code> with minimum pool size of zero</li>
<li>Removed confusing warning when not using native extenstions</li>
<li>Improved documentation</li>
</ul>
<h2>Release v0.7.0 (13 August 2014)</h2>
<ul>
<li>Merge the <a href="https://github.com/ruby-concurrency/atomic">atomic</a> gem
<ul>
<li>Pure Ruby <code>MutexAtomic</code> atomic reference class</li>
<li>Platform native atomic reference classes <code>CAtomic</code>, <code>JavaAtomic</code>, and <code>RbxAtomic</code></li>
<li>Automated <a href="https://github.com/ruby-concurrency/rake-compiler-dev-box">build process</a></li>
<li>Fat binary releases for <a href="https://rubygems.org/gems/concurrent-ruby/versions">multiple platforms</a> including Windows (32/64), Linux (32/64), OS X (64-bit), Solaris (64-bit), and JRuby</li>
</ul></li>
<li>C native <code>CAtomicBoolean</code></li>
<li>C native <code>CAtomicFixnum</code></li>
<li>Refactored intermittently failing tests</li>
<li>Added <code>dataflow!</code> and <code>dataflow_with!</code> methods to match <code>Future#value!</code> method</li>
<li>Better handling of timeout in <code>Agent</code></li>
<li>Actor Improvements
<ul>
<li>Fine-grained implementation using chain of behaviors. Each behavior is responsible for single aspect like: <code>Termination</code>, <code>Pausing</code>, <code>Linking</code>, <code>Supervising</code>, etc. Users can create custom Actors easily based on their needs.</li>
<li>Supervision was added. <code>RestartingContext</code> will pause on error waiting on its supervisor to decide what to do next ( options are <code>:terminate!</code>, <code>:resume!</code>, <code>:reset!</code>, <code>:restart!</code>). Supervising behavior also supports strategies <code>:one_for_one</code> and <code>:one_for_all</code>.</li>
<li>Linking was added to be able to monitor actor's events like: <code>:terminated</code>, <code>:paused</code>, <code>:restarted</code>, etc.</li>
<li>Dead letter routing added. Rejected envelopes are collected in a configurable actor (default: <code>Concurrent::Actor.root.ask!(:dead_letter_routing)</code>)</li>
<li>Old <code>Actor</code> class removed and replaced by new implementation previously called <code>Actress</code>. <code>Actress</code> was kept as an alias for <code>Actor</code> to keep compatibility.</li>
<li><code>Utils::Broadcast</code> actor which allows Publish–subscribe pattern.</li>
</ul></li>
<li>More executors for managing serialized operations
<ul>
<li><code>SerializedExecution</code> mixin module</li>
<li><code>SerializedExecutionDelegator</code> for serializing <em>any</em> executor</li>
</ul></li>
<li>Updated <code>Async</code> with serialized execution</li>
<li>Updated <code>ImmediateExecutor</code> and <code>PerThreadExecutor</code> with full executor service lifecycle</li>
<li>Added a <code>Delay</code> to root <code>Actress</code> initialization</li>
<li>Minor bug fixes to thread pools</li>
<li>Refactored many intermittently failing specs</li>
<li>Removed Java interop warning <code>executor.rb:148 warning: ambiguous Java methods found, using submit(java.lang.Runnable)</code></li>
<li>Fixed minor bug in <code>RubyCachedThreadPool</code> overflow policy</li>
<li>Updated tests to use <a href="http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3">RSpec 3.0</a></li>
<li>Removed deprecated <code>Actor</code> class</li>
<li>Better support for Rubinius</li>
</ul>
<h2>Release v0.6.1 (14 June 2014)</h2>
<ul>
<li>Many improvements to <code>Concurrent::Actress</code></li>
<li>Bug fixes to <code>Concurrent::RubyThreadPoolExecutor</code></li>
<li>Fixed several brittle tests</li>
<li>Moved documentation to <a href="http://ruby-concurrency.github.io/concurrent-ruby/frames.html">http://ruby-concurrency.github.io/concurrent-ruby/frames.html</a></li>
</ul>
<h2>Release v0.6.0 (25 May 2014)</h2>
<ul>
<li>Added <code>Concurrent::Observable</code> to encapsulate our thread safe observer sets</li>
<li>Improvements to new <code>Channel</code></li>
<li>Major improvements to <code>CachedThreadPool</code> and <code>FixedThreadPool</code></li>
<li>Added <code>SingleThreadExecutor</code></li>
<li>Added <code>Current::timer</code> function</li>
<li>Added <code>TimerSet</code> executor</li>
<li>Added <code>AtomicBoolean</code></li>
<li><code>ScheduledTask</code> refactoring</li>
<li>Pure Ruby and JRuby-optimized <code>PriorityQueue</code> classes</li>
<li>Updated <code>Agent</code> behavior to more closely match Clojure</li>
<li>Observer sets support block callbacks to the <code>add_observer</code> method</li>
<li>New algorithm for thread creation in <code>RubyThreadPoolExecutor</code></li>
<li>Minor API updates to <code>Event</code></li>
<li>Rewritten <code>TimerTask</code> now an <code>Executor</code> instead of a <code>Runnable</code></li>
<li>Fixed many brittle specs</li>
<li>Renamed <code>FixedThreadPool</code> and <code>CachedThreadPool</code> to <code>RubyFixedThreadPool</code> and <code>RubyCachedThreadPool</code></li>
<li>Created JRuby optimized <code>JavaFixedThreadPool</code> and <code>JavaCachedThreadPool</code></li>
<li>Consolidated fixed thread pool tests into <code>spec/concurrent/fixed_thread_pool_shared.rb</code> and  <code>spec/concurrent/cached_thread_pool_shared.rb</code></li>
<li><code>FixedThreadPool</code> now subclasses <code>RubyFixedThreadPool</code> or <code>JavaFixedThreadPool</code> as appropriate</li>
<li><code>CachedThreadPool</code> now subclasses <code>RubyCachedThreadPool</code> or <code>JavaCachedThreadPool</code> as appropriate</li>
<li>New <code>Delay</code> class</li>
<li><code>Concurrent::processor_count</code> helper function</li>
<li>New <code>Async</code> module</li>
<li>Renamed <code>NullThreadPool</code> to <code>PerThreadExecutor</code></li>
<li>Deprecated <code>Channel</code> (we are planning a new implementation based on <a href="http://golangtutorials.blogspot.com/2011/06/channels-in-go.html">Go</a>)</li>
<li>Added gem-level <a href="http://robots.thoughtbot.com/mygem-configure-block">configuration</a></li>
<li>Deprecated <code>$GLOBAL_THREAD_POOL</code> in lieu of gem-level configuration</li>
<li>Removed support for Ruby <a href="https://www.ruby-lang.org/en/news/2013/12/17/maintenance-of-1-8-7-and-1-9-2/">1.9.2</a></li>
<li>New <code>RubyThreadPoolExecutor</code> and <code>JavaThreadPoolExecutor</code> classes</li>
<li>All thread pools now extend the appropriate thread pool executor classes</li>
<li>All thread pools now support <code>:overflow_policy</code> (based on Java's <a href="http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/ThreadPoolExecutor.html">reject policies</a>)</li>
<li>Deprecated <code>UsesGlobalThreadPool</code> in lieu of explicit <code>:executor</code> option (dependency injection) on <code>Future</code>, <code>Promise</code>, and <code>Agent</code></li>
<li>Added <code>Concurrent::dataflow_with(executor, *inputs)</code> method to support executor dependency injection for dataflow</li>
<li>Software transactional memory with <code>TVar</code> and <code>Concurrent::atomically</code></li>
<li>First implementation of <a href="https://github.com/ruby-concurrency/concurrent-ruby/pull/49">new, high-performance</a> <code>Channel</code></li>
<li><code>Actor</code> is deprecated in favor of new experimental actor implementation <a href="https://github.com/ruby-concurrency/concurrent-ruby/pull/73">#73</a>. To avoid namespace collision it is living in <code>Actress</code> namespace until <code>Actor</code> is removed in next release.</li>
</ul>
<h2>Release v0.5.0</h2>
<p>This is the most significant release of this gem since its inception. This release includes many improvements and optimizations. It also includes several bug fixes. The major areas of focus for this release were:</p>
<ul>
<li>Stability improvements on Ruby versions with thread-level parallelism (<a href="http://jruby.org/">JRuby</a> and <a href="http://rubini.us/">Rubinius</a>)</li>
<li>Creation of new low-level concurrency abstractions</li>
<li>Internal refactoring to use the new low-level abstractions</li>
</ul>
<p>Most of these updates had no effect on the gem API. There are a few notable exceptions which were unavoidable. Please read the <a href="API-Updates-in-v0.5.0">release notes</a> for more information.</p>
<p>Specific changes include:</p>
<ul>
<li>New class <code>IVar</code></li>
<li>New class <code>MVar</code></li>
<li>New class <code>ThreadLocalVar</code></li>
<li>New class <code>AtomicFixnum</code></li>
<li>New class method <code>dataflow</code></li>
<li>New class <code>Condition</code></li>
<li>New class <code>CountDownLatch</code></li>
<li>New class <code>DependencyCounter</code></li>
<li>New class <code>SafeTaskExecutor</code></li>
<li>New class <code>CopyOnNotifyObserverSet</code></li>
<li>New class <code>CopyOnWriteObserverSet</code></li>
<li><code>Future</code> updated with <code>execute</code> API</li>
<li><code>ScheduledTask</code> updated with <code>execute</code> API</li>
<li>New <code>Promise</code> API</li>
<li><code>Future</code> now extends <code>IVar</code></li>
<li><code>Postable#post?</code> now returns an <code>IVar</code></li>
<li>Thread safety fixes to <code>Dereferenceable</code></li>
<li>Thread safety fixes to <code>Obligation</code></li>
<li>Thread safety fixes to <code>Supervisor</code></li>
<li>Thread safety fixes to <code>Event</code></li>
<li>Various other thread safety (race condition) fixes</li>
<li>Refactored brittle tests</li>
<li>Implemented pending tests</li>
<li>Added JRuby and Rubinius as Travis CI build targets</li>
<li>Added <a href="https://codeclimate.com/">CodeClimate</a> code review</li>
<li>Improved YARD documentation</li>
</ul>
</div></div>
      <div id="footer">
  Generated by <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_blank">yard</a>.
</div>
<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
          m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  ga('create', 'UA-57940973-1', 'auto');
  ga('send', 'pageview');
</script>
    </div>
  </body>
</html>
 |