Yielding from a callback

  • From: Geoff Leyland <geoff_leyland@xxxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Fri, 29 Nov 2013 22:27:24 +1300

Hi,

Just a quick check: am I right in thinking you can’t yield from inside a 
callback?  I ask because it’s quite possible that the "attempt to yield across 
C-call boundary” error could come from some other mistake I’ve made.

(I’ve got a callback-style C API that would be nice to turn into an iterator, 
but it’s not a problem if it can’t be done)

Cheers,
Geoff


Other related posts: