Capítulo 168 de 988

Chapter 168: getRenderProgress()

Core Idea

:::warning Experimental package: We reserve the right to make breaking changes in order to correct bad design decisions until this notice is gone.

Key Concepts

  • Example
  • Arguments
  • sandboxId
  • cmdId
  • Return value
  • See also

Code Examples

export async function GET(req: Request) {
  const url = new URL(req.url);
  const sandboxId = url.searchParams.get('sandboxId');
  const cmdId = url.searchParams.get('cmdId');

  if (!sandboxId || !cmdId) {
    return Response.json({error: 'Missing params'}, {status: 400});
  }

  const progress = await getRenderProgress({sandboxId, cmdId});
  return Response.json(progress);
}
  • What it demonstrates: Usage pattern for getRenderProgress() from the official docs.

Key Takeaways

  1. Understand example when working with getRenderProgress().
  2. Understand arguments when working with getRenderProgress().
  3. Understand sandboxid when working with getRenderProgress().
  4. Understand cmdid when working with getRenderProgress().
  5. Understand return value when working with getRenderProgress().

Connects To

  • Azure Container Apps: related page in the Deployment & Runtimes section.
  • bun: related page in the Deployment & Runtimes section.
  • Cloudflare Containers: related page in the Deployment & Runtimes section.