Home Bug Reports

Documentation bug: Timer and Timer Task

beaglesbeagles Member Brent EaglesOrganization: Eagles Technologies IncProject: Asterisk SCF ✭✭✭
The current Timer and TimerTask documentation in the Ice Manual contains some errors with respect to the current version of Ice (3.4.2).
  • The fourth and fifth paragraphs from the bottom are incorrect with respect to once-only tasks. The code appears to treat once-only tasks in a manner similar to repeated tasks; calling cancel() on a once-only task does indeed prevent it from executing and will return true if it succeeds in doing so.
  • The last paragraph indicates that calling schedule or scheduleRepeated on a destroyed timer does nothing, yet both these functions throw an IllegalArgumentException if this occurs.
Cheers,

Brent

Comments

  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Hi Brent,

    Thanks for the report, I've fixed the documentation!

    Cheers,
    Benoit.
Sign In or Register to comment.