MCPcopy Create free account
hub / github.com/plotly/dash / pickArbitraryLane

Function pickArbitraryLane

dash/deps/react-dom@18.3.1.js:5719–5725  ·  view source on GitHub ↗
(lanes)

Source from the content-addressed store, hash-verified

5717 return lanes & -lanes;
5718 }
5719 function pickArbitraryLane(lanes) {
5720 // This wrapper function gets inlined. Only exists so to communicate that it
5721 // doesn't matter which bit is selected; you can pick any bit without
5722 // affecting the algorithms where its used. Here I'm using
5723 // getHighestPriorityLane because it requires the fewest operations.
5724 return getHighestPriorityLane(lanes);
5725 }
5726
5727 function pickArbitraryLaneIndex(lanes) {
5728 return 31 - clz32(lanes);

Callers 4

throwExceptionFunction · 0.70
updateClassComponentFunction · 0.70
requestUpdateLaneFunction · 0.70

Calls 1

getHighestPriorityLaneFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…