Skip to content

Question: Reusing CalendarBuilder #774

Answered by benfortuna
mkarg asked this question in Q&A
Discussion options

You must be logged in to vote

CalendarParser and ContentHandler are interfaces, but the default CalendarParser implementation should be thread-safe.

The default ContentHandler is not thread-safe, as it also captures localized timezones in a registry, but you can implement your own. I think it may be difficult to make a ContentHandler completely thread-safe as it maintains state of the calendar as it is being parsed.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mkarg
Comment options

@benfortuna
Comment options

Answer selected by mkarg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #773 on January 26, 2025 23:33.