Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@azure/core-lro

Package Overview
Dependencies
Maintainers
3
Versions
375
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@azure/core-lro

LRO Polling strtegy for the Azure SDK in TypeScript

  • 1.0.5
  • npm
  • Socket score

Version published
Maintainers
3
Created

What is @azure/core-lro?

The @azure/core-lro package provides a framework for building and working with long-running operations (LROs) in Azure services. It offers a standardized way to poll for the status of these operations and retrieve the final results, abstracting the complexity involved in handling LROs.

What are @azure/core-lro's main functionalities?

Creating and managing long-running operations

This feature allows developers to implement custom pollers for managing long-running operations. The code sample demonstrates how to extend the Poller class to create a custom LRO poller.

const { Poller } = require('@azure/core-lro');

class MyLroPoller extends Poller {
  async cancelOperation() {
    // Cancel the operation if supported
  }

  async delay() {
    // Implement delay between polls
  }
}

const myPoller = new MyLroPoller();
await myPoller.pollUntilDone();

Polling for operation status

This feature enables polling for the status of a long-running operation until it is completed. The code sample shows how to use the Poller class to poll an operation until it's done.

const { Poller } = require('@azure/core-lro');

async function pollOperation(operation) {
  const poller = new Poller({
    operation,
  });

  return await poller.pollUntilDone();
}

Other packages similar to @azure/core-lro

Keywords

FAQs

Package last updated on 12 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc