MCPcopy Create free account
hub / github.com/Effect-TS/effect / watchPosition

Function watchPosition

packages/platform/browser/src/Geolocation.ts:223–233  ·  view source on GitHub ↗
(
  options?:
    | PositionOptions & {
      readonly bufferSize?: number | undefined
    }
    | undefined
)

Source from the content-addressed store, hash-verified

221 * @since 4.0.0
222 */
223export const watchPosition = (
224 options?:
225 | PositionOptions & {
226 readonly bufferSize?: number | undefined
227 }
228 | undefined
229): Stream.Stream<GeolocationPosition, GeolocationError, Geolocation> =>
230 Stream.unwrap(Effect.map(
231 Effect.service(Geolocation),
232 (geolocation) => geolocation.watchPosition(options)
233 ))

Callers

nothing calls this directly

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected