Skip to content
This repository

Using tamejs with CoffeeScript 

maxtaco edited this page · 2 revisions
Clone this wiki locally

CoffeeScript allows Embedded Javascript, so you can use tamejs like this:

for x in [1...10]
  `await {` ; setTimeout defer (), 100; `}`
  console.log 'hello ' + x

To see the generated code, checkout:

CoffeeScript had a discussion about including a similar concept (defer) but it didn't go through. Part III of a very long discussion can be seen here

Something went wrong with that request. Please try again.