# Sample scripts: Moving from \`syncronous\` EternaScript folding functions to \`async\`

**URL:** https://forum.eternagame.org/t/sample-scripts-moving-from-syncronous-eternascript-folding-functions-to-async/5096
**Category:** Tools
**Created:** [September 25, 2024, 12:24am UTC](https://forum.eternagame.org/t/sample-scripts-moving-from-syncronous-eternascript-folding-functions-to-async/5096 "2024-09-25T00:24:50Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![LFP6](https://forum.eternagame.org/user_avatar/forum.eternagame.org/lfp6/32/7_2.png) [@LFP6](https://forum.eternagame.org/u/LFP6)
#### Post date: [September 25, 2024, 12:24am UTC](https://forum.eternagame.org/t/sample-scripts-moving-from-syncronous-eternascript-folding-functions-to-async/5096/1 "2024-09-25T00:24:50Z")

</div>

A while ago we added the new `_async` functions to the EternaScript API, which you have to use if you want to work with RibonanzaNet (as well as paving the way for other improved behavior in the future). I had told Eli I would come up with some sample scripts to show how you would change a script to use the new async functions, and figured I would post here in case anyone else finds it useful

Syncronous version: [Eterna](https://eternagame.org/scripts/13621213)  
Async version, using `.then`/callbacks: [Eterna](https://eternagame.org/scripts/13621221)  
Async version, using `async/await` syntax: [Eterna](https://eternagame.org/scripts/13621282)
