Template:Storage:threadsafety callback warning

<%- template("Warning", ["This callback is executed on the thread that the statement or trigger is executing on.  If you use " + template('ifmethod', ['mozIStorageConnection', 'executeAsync']) + " or " + template('ifmethod', ['mozIStorageStatement', 'executeAsync']) + ", this callback will run on a different thread from the rest of your code.  Likewise, if you execute SQL on a different thread, this callback will be executed on that thread.  This callback should be <a href='http://en.wikipedia.org/wiki/Re-entrant_code'>reentrant</a> if any of the above applies to your use of the storage APIs!"]) %>
Search for pages that use Template:Storage:threadsafety callback warning to see example use cases and how many pages use this macro.

Document Tags and Contributors

Tags:
Contributors to this page: sdwilsh, trevorh
Last updated by: trevorh,