Comments (5)
Try specifying void result type:
try transaction.set(key: key, value: bytes, commit: shouldCommit) as Void
NB: this ambiguity will go away for good in v5 which should land with Swift 6 (or maybe even earlier), when we have concurrency and async/await
; I will drop SwiftNIO dependency (along with NIO-sibling methods) and all public methods will become async.
from fdbswift.
Did try that and it threw an error
error fdbswift.default : trid=2466853707322889 [FDB.Transaction] [commit] No event loop
from fdbswift.
Were you using tr.commit()
method to commit? Because for sync API it's tr.commitSync()
from fdbswift.
OK. That worked. Thanks!
from fdbswift.
Glad I could help! Don't hesitate asking any more questions. And BTW, I wouldn't recommend using blocking sync API, it's not healthy for your app.
from fdbswift.
Related Issues (20)
- Incorrect null escape unpack
- Make TuplePackable non-optional
- Proper namespace
- Safer Tuple unpack HOT 1
- Even more verbose
- Transaction options HOT 1
- Implement own precondition function for all assertions
- FDBTuplePackable's methods' names and definitions are too wide
- `'foundationdb/fdb_c.h' file not found` when building in Xcode HOT 11
- Support for version stamps in keys HOT 3
- Some tests pollute the local cluster HOT 1
- Why not use an additional package instead of requiring manual installation steps HOT 3
- No License HOT 2
- Implement Directory layer HOT 2
- Failing versionstamp test in master HOT 4
- Issues running tests with Xcode 12 HOT 10
- FDB.NetworkOption.TLSVerifyPeers should have String associated value instead of Bytes HOT 1
- Omit password string when logging FDB.NetworkOption.TLSPassword setting HOT 1
- Subspace.subspace is internal but readme suggests otherwise. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fdbswift.