Skip to content

Commit

Permalink
ownPoller is best-effort
Browse files Browse the repository at this point in the history
  • Loading branch information
armanbilge committed Oct 23, 2024
1 parent 5489d3a commit a2fd0cb
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ trait PollerProvider[P] {
def accessPoller(cb: P => Unit): Unit

/**
* Returns `true` if it is safe to interact with this `Poller`
* Returns `true` if it is safe to interact with this `Poller`. Implementors of this method
* may be best-effort: it is always safe to return `false`, so callers must have an adequate
* fallback for the non-owning case.
*/
def ownPoller(poller: P): Boolean
}
Expand Down

0 comments on commit a2fd0cb

Please sign in to comment.