11.3 Engine predicate reference
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • Coroutining using Prolog engines
        • Engine predicate reference
          • engine_create/3
          • engine_create/4
          • engine_destroy/1
          • engine_next/2
          • engine_next_reified/2
          • engine_post/2
          • engine_post/3
          • engine_yield/1
          • engine_fetch/1
          • engine_self/1
          • is_engine/1
          • current_engine/1
    • Packages
Availability:built-in
Source[det]engine_yield(+Term)
Called from within the engine, causing engine_next/2 in the caller to return with Term. A subsequent call to engine_next/2 causes engine_yield/1 to‘return'. This predicate can only be called if the engine is not involved in a callback from C, i.e., when the engine calls a predicate defined in C that calls back Prolog it is not possible to use this predicate. Trying to do so results in a permission_error exception.