throw :async is the other one that floats around in thin ... you use it for
long polling support (returns control to thin)


On Fri, May 17, 2013 at 2:50 PM, Benjamin Fleischer <
notifications@github.com> wrote:

> In lib/pretty_text.rb:
>
> > @@ -303,7 +299,7 @@ def characters(string, truncate = true, count_it = true, encode = true)
> >          @excerpt << encode.call(string[0..length]) if truncate
> >          @excerpt << "&hellip;"
> >          @excerpt << "</a>" if @in_a
> > -        raise DoneException.new
> > +        throw :done
>
> I've never seen a sensible use of throw/catch in ruby before. Congrats.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/discourse/discourse/pull/852/files#r4270424>
> .
>