boxlang-core-dev-async-tasks

Orchestrate asynchronous tasks and scheduled jobs in BoxLang.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/ortus-boxlang/skills --skill boxlang-core-dev-async-tasks
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: boxlang-core-dev-async-tasks
Source: https://github.com/ortus-boxlang/skills/tree/main/boxlang-core-development/async-tasks
Command: npx skills add https://github.com/ortus-boxlang/skills --skill boxlang-core-dev-async-tasks

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Managing asynchronous operations and scheduled tasks in BoxLang can be verbose and error-prone; this skill centralizes BoxFuture, AsyncService, schedulers, and related APIs to streamline async programming.

Core Features & Use Cases

  • BoxFuture extends CompletableFuture with fluent helpers for composition and error handling.
  • AsyncService provides executor factories for VIRTUAL, FIXED, CACHED, and SCHEDULED executors and a unified future API.
  • BaseScheduler and ScheduledTask offer a fluent API to register recurring tasks with cron-like constraints and lifecycle callbacks.
  • ModuleConfig.bx integration demonstrates how to register and start schedulers within a module lifecycle.

Quick Start

Extend BaseScheduler to implement tasks, then register the scheduler with ModuleConfig.bx so it starts on load.

Frequently Asked Questions about boxlang-core-dev-async-tasks

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I schedule recurring tasks in BoxLang?

To schedule recurring tasks in BoxLang, extend the BaseScheduler class and use the ScheduledTask fluent API to register tasks with cron-like constraints and lifecycle callbacks, then register the scheduler via ModuleConfig.bx to start it on module load.

What is the best way to manage asynchronous execution in BoxLang applications?

Managing asynchronous execution in BoxLang is handled by the AsyncService, which provides executor factories for VIRTUAL, FIXED, CACHED, and SCHEDULED executors, alongside a unified future API to streamline cross-executor coordination and async programming.

Does BoxLang provide a fluent API for composing asynchronous futures?

BoxLang provides BoxFuture, which extends CompletableFuture with fluent helpers specifically designed for async composition and error handling, streamlining complex asynchronous operations within BoxLang applications.

How do I configure different thread executor types in BoxLang?

You configure different thread executor types in BoxLang using the AsyncService executor factories, which support creating VIRTUAL, FIXED, CACHED, and SCHEDULED executors to match your application's specific asynchronous task requirements.

Can I register schedulers to start automatically when a BoxLang module loads?

Yes, you can register schedulers to start automatically on module load by integrating them with ModuleConfig.bx, which manages the scheduler lifecycle and initialization during the BoxLang module startup process.