Resolvable: Async Addon Library for World of Warcraft

Resolvable simplifies async coding for World of Warcraft addon developers with promises, await, and callbacks. Install it easily and build better addons.

Download Resolvable for World of Warcraft 1.14.3

Original name: Resolvable

World of Warcraft: 1.14.3

FileVersionLoaderSize
Resolvable_1_0_0.zip1.14.3—38 КБDownload

Resolvable

If you have ever tried to coordinate several asynchronous events in a World of Warcraft addon, you know the pain. Callbacks pile up, state flags multiply, and before long your code looks like a plate of spaghetti. Resolvable is a small but powerful library that brings promise-like behavior to addon development, letting you write cleaner, more predictable code without reinventing the wheel.

Whether you are a seasoned addon author or someone tinkering with their first project, this library is worth a look. It is lightweight, focused, and designed specifically for the quirks of the WoW API.

What Is Resolvable?

At its core, Resolvable is a library for working with resolvables, which are objects similar to promises or futures found in other programming environments. A resolvable represents a value that will be available at some point, and it lets you attach behavior to run once that value arrives. This saves addon developers a significant amount of work when dealing with events, timers, or any operation that does not complete instantly.

The library is intentionally minimal. It does not try to be a full async framework. Instead, it gives you the essential building blocks and stays out of your way.

Core Features and API

Creating a Resolvable

You create one with Resolvable.Resolvable:new, the constructor. This returns two values: the resolvable itself and a table of internal methods intended for whoever created it. The most important internal method is resolve, which fulfills the resolvable and triggers any registered callbacks.

Registering Callbacks

Once you have a resolvable, you can attach behavior with Resolvable.Resolvable:afterResolve, also available as Resolvable.Resolvable.after. The callback you register fires as soon as the resolvable is resolved, making it easy to chain logic without nesting functions.

Awaiting Results

The await function, also exposed as Resolvable.await, lets you wait on a promise. There is one important catch: it can only be used inside a coroutine. That constraint keeps things safe within the WoW environment, but it is something to keep in mind as you design your addon's flow.

Combining Multiple Resolvables

Resolvable.all creates a new resolvable that resolves only when every resolvable you passed in has resolved. This is perfect for situations where you need several pieces of data before proceeding, such as waiting on multiple addon communications or API responses.

Game Version Compatibility

One of the strengths of Resolvable is how broadly it applies across the many flavors of the game. Addon authors working on different clients will find it useful in nearly every context:

  • Retail — the current live client, where modern addon development is most active.
  • Classic — the original experience, still popular with addon creators.
  • TBC — The Burning Crusade Classic servers.
  • WotLK — Wrath of the Lich King Classic.
  • Cataclysm — the Cataclysm Classic client.
  • MoP — Mists of Pandaria Classic.

Because the library relies on standard Lua patterns rather than client-specific features, it slots neatly into projects targeting any of these versions. Always double-check the addon's metadata to confirm the interface version matches your client before you commit to it in a project.

How to Install

Getting started is straightforward. If you are wondering how to install it, the process mirrors most WoW addons. First, download Resolvable from a trusted source and extract the archive. Place the resulting folder inside your World of Warcraft addons directory, typically located at World of Warcraft/_retail_/Interface/AddOns or the equivalent folder for your Classic client. Restart the game or reload your UI, and the library will be available to any addon that lists it as a dependency.

For developers, the foxygame.net launcher makes this even simpler, since Resolvable sits in its addon catalog and can be added to your setup with a single click, no manual folder shuffling required. That convenience is especially welcome when you maintain addons across several game versions at once.

Why Addon Developers Like It

The appeal of Resolvable comes down to readability. Instead of scattering callbacks across your codebase, you can express intent directly: create a resolvable, resolve it when the work finishes, and let the registered handlers take over. Combined with Resolvable.all and coroutine-based await, you get a compact toolkit that handles the most common async headaches without extra baggage.

It is also a great learning tool. If you have been curious about promises but found them intimidating, this library is small enough to read through in an afternoon and practical enough to use in real projects.

Final Thoughts

Resolvable for World of Warcraft fills a genuine gap in the addon ecosystem. It is not flashy, and it will not change how your addon looks, but it will make the code behind it cleaner and easier to maintain. For anyone building addons that juggle events, timers, or multiple data sources, adding this library to your toolkit is a smart move. Grab it, drop it into your AddOns folder, and start writing async code that actually reads well.