# Async and callback not working in plugin server action

**URL:** <https://forum.bubble.io/t/async-and-callback-not-working-in-plugin-server-action/236346>\
**Category:** Plugins\
**Created:** [December 9, 2022, 9:57am UTC](https://forum.bubble.io/t/async-and-callback-not-working-in-plugin-server-action/236346 "2022-12-09T09:57:55Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![bubble.trouble](https://avatars.discourse-cdn.com/v4/letter/b/7ba0ec/32.png) [@bubble.trouble](https://forum.bubble.io/u/bubble.trouble)\
**Post date:** [December 9, 2022, 1:18pm UTC](https://forum.bubble.io/t/async-and-callback-not-working-in-plugin-server-action/236346/4 "2022-12-09T13:18:37Z")

</div>

> [@Understanding \`context.async\`](http://forum.bubble.io/t/understanding-context-async/53299/12):
>
> Here almost a year later, but I did notice that context.async seems to be working now. Only bumping this incase someone did want to use it; I’d recommend declaring a function within the larger run\_server function: function(properties, context) { //... function myAsyncFunction() { return context.async(async callback =\> { try { let return\_var = "never set in code"; // ... // do your processing here // ... …

---

_[View the full topic](https://forum.bubble.io/t/async-and-callback-not-working-in-plugin-server-action/236346)._
