code: func SetTaskAssignment(tx *bolt.Tx, id string, assigned bool) error {
  	return withTaskBucket(tx, id, func(bkt *bolt.Bucket) error {
  		if assigned {
  			return bkt.Put(bucketKeyAssigned, []byte{0xFF})
  		}
  		return bkt.Delete(bucketKeyAssigned)
  	})
  }
docs: // SetTaskAssignment sets the current assignment state.