about summary refs log tree commit homepage
path: root/.olddoc.yml
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2017-12-28 01:04:01 +0000
committerEric Wong <e@80x24.org>2017-12-28 01:29:51 +0000
commitd06d8c221be5b82d00da821323fb6d1889e58105 (patch)
tree04d1078b21632f3d212736d207a3a6fd069578b5 /.olddoc.yml
parentffd573d913751ee5f6fee44ab7f2f9295f3c0495 (diff)
downloadmsgthr-d06d8c221be5b82d00da821323fb6d1889e58105.tar.gz
This fixes our API to match the documentation in making
Msgthr#order! optional.  Furthermore, the block previously
passed to Msgthr#order! may now be passed to Msgthr#thread!
instead.

We accomplish this by tracking internal state explicitly, so a
Msgthr::StateError exception will be raised when methods are
called in an unsupported order.  This internal state is reset
with Msgthr#clear.

For users who truly do not care about ordering, Msgthr#walk_thread
may be called immediately after the last call to Msgthr#add.

Thanks to Dimid Duchovny for the feedback which led to this:
https://80x24.org/msgthr-public/CANKvuDc2mkxLuh+3+WXWfMXzxK2bShNesrD5xLocGOD1RybbwQ@mail.gmail.com/
Diffstat (limited to '.olddoc.yml')
0 files changed, 0 insertions, 0 deletions