Make clear that synchronous API calls MUST return the result as return value
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Thu, 09 Aug 2012 17:50:33 +0200
changeset 801 5a5ab3bf8735
parent 800 a9f57ae2a07a
child 802 ab42822c2bb7
Make clear that synchronous API calls MUST return the result as return value

This addresses #147; I forgot to include it in 6c219c515deecc85c509e5968c673f275bf5e06f.
spec/latest/json-ld-api/index.html
spec/latest/json-ld-framing/index.html
--- a/spec/latest/json-ld-api/index.html	Thu Aug 09 17:43:27 2012 +0200
+++ b/spec/latest/json-ld-api/index.html	Thu Aug 09 17:50:33 2012 +0200
@@ -739,8 +739,8 @@
 
     <p class="note">The JSON-LD API signatures are the same across all programming languages. Due
       to the fact that asynchronous programming is uncommon in certain languages, developers MAY
-      implement processor with a synchronous interface instead. In that case the <code>callback</code>
-      parameter MUST NOT be included.</p>
+      implement processor with a synchronous interface instead. In that case, the <code>callback</code>
+      parameter MUST NOT be included and the result MUST be returned as return value instead.</p>
 
     <dl title="[NoInterfaceObject] interface JsonLdProcessor" class="idl">
 
--- a/spec/latest/json-ld-framing/index.html	Thu Aug 09 17:43:27 2012 +0200
+++ b/spec/latest/json-ld-framing/index.html	Thu Aug 09 17:50:33 2012 +0200
@@ -446,8 +446,8 @@
 
     <p class="note">The JSON-LD API signatures are the same across all programming languages. Due
       to the fact that asynchronous programming is uncommon in certain languages, developers MAY
-      implement processor with a synchronous interface instead. In that case the <code>callback</code>
-      parameter MUST NOT be included.</p>
+      implement processor with a synchronous interface instead. In that case, the <code>callback</code>
+      parameter MUST NOT be included and the result MUST be returned as return value instead.</p>
 
     <dl title="[NoInterfaceObject] interface JsonLdProcessor" class="idl">