mozilla

Compare Revisions

Storage

Change Revisions

Revision 309047:

Revision 309047 by KWierso on

Revision 344009:

Revision 344009 by pellaeon on

Title:
Storage
Storage
Slug:
Storage
Storage
Tags:
"Fixit", "Toolkit API", "NeedsTechnicalReview", "Storage", "Interfaces"
"Fixit", "Toolkit API", "NeedsTechnicalReview", "Storage", "Interfaces"
Content:

Revision 309047
Revision 344009
t82      To close a connection on which only synchronous transactiont82      To close a connection on which only synchronous transaction
>s were performed, use the {{ ifmethod("mozIStorageConnection", "c>s were performed, use the <a href="/en-US/docs/mozIStorageConnect
>lose") }} method. If you performed any asynchronous transactions,>ion#close()" title="/en-US/docs/mozIStorageConnection#close()"><c
> you should instead use the {{ ifmethod("mozIStorageConnection", >ode>mozIStorageConnection.close()</code></a> method. If you perfo
>"asyncClose") }} method. The latter will allow all ongoing transa>rmed any asynchronous transactions, you should instead use the <a
>ctions to complete before closing the connection, and will option> href="/en-US/docs/mozIStorageConnection#asyncClose()" title="/en
>ally notify you via callback when the connection is closed.>-US/docs/mozIStorageConnection#asyncClose()"><code>mozIStorageCon
 >nection.asyncClose()</code></a> method. The latter will allow all
 > ongoing transactions to complete before closing the connection, 
 >and will optionally notify you via callback when the connection i
 >s closed.

Back to History